<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#222" media="(prefers-color-scheme: dark)"><meta name="generator" content="Hexo 5.4.2">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha256-DfWjNxDkM94fVBWx1H5BMMp0Zq7luBlV8QRcSES7s+0=" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"mathieulin.gitee.io","root":"/","images":"/images","scheme":"Gemini","darkmode":true,"version":"8.12.1","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":{"enable":false,"style":null},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"},"path":"/search.xml","localsearch":{"enable":true,"trigger":"manual","top_n_per_article":1,"unescape":false,"preload":false}}</script><script src="/js/config.js"></script>

    <meta name="description" content="这是CTS代码快速通过CTS获取评测数据（读书人的事情嘛） 1234567891011121314String input&#x3D;&quot;&quot;;while (true) &amp;#123;            argStr &#x3D; in.nextLine();    [+]     input+&#x3D;argStr;    [+]		input+&#x3D;&quot;;&quot;;">
<meta property="og:type" content="article">
<meta property="og:title" content="CTS4">
<meta property="og:url" content="https://mathieulin.gitee.io/2022/05/06/CTS4/index.html">
<meta property="og:site_name" content="Mathieu&#39;s blog">
<meta property="og:description" content="这是CTS代码快速通过CTS获取评测数据（读书人的事情嘛） 1234567891011121314String input&#x3D;&quot;&quot;;while (true) &amp;#123;            argStr &#x3D; in.nextLine();    [+]     input+&#x3D;argStr;    [+]		input+&#x3D;&quot;;&quot;;">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2022-05-06T14:59:31.000Z">
<meta property="article:modified_time" content="2022-06-02T12:00:31.499Z">
<meta property="article:author" content="Mathieu Lin">
<meta property="article:tag" content="前后端">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="https://mathieulin.gitee.io/2022/05/06/CTS4/">



<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-CN","comments":true,"permalink":"https://mathieulin.gitee.io/2022/05/06/CTS4/","path":"2022/05/06/CTS4/","title":"CTS4"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>CTS4 | Mathieu's blog</title>
  




<link rel="dns-prefetch" href="https://blog-commeny-mh5e4d5jo-mathieulin.vercel.app">
  <noscript>
    <link rel="stylesheet" href="/css/noscript.css">
  </noscript>
<link rel="alternate" href="/atom.xml" title="Mathieu's blog" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <p class="site-title">Mathieu's blog</p>
      <i class="logo-line"></i>
    </a>
      <p class="site-subtitle" itemprop="description">lzhow的debug路程</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li><li class="menu-item menu-item-about"><a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a></li><li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a></li><li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a></li><li class="menu-item menu-item-schedule"><a href="/schedule/" rel="section"><i class="fa fa-calendar fa-fw"></i>日程表</a></li><li class="menu-item menu-item-sitemap"><a href="/sitemap.xml" rel="section"><i class="fa fa-sitemap fa-fw"></i>站点地图</a></li><li class="menu-item menu-item-commonweal"><a href="/404/" rel="section"><i class="fa fa-heartbeat fa-fw"></i>公益 404</a></li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup"><div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off" maxlength="80"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close" role="button">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div class="search-result-container no-result">
  <div class="search-result-icon">
    <i class="fa fa-spinner fa-pulse fa-5x"></i>
  </div>
</div>

    </div>
  </div>

</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E8%BF%99%E6%98%AFCTS%E4%BB%A3%E7%A0%81"><span class="nav-number">1.</span> <span class="nav-text">这是CTS代码</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%BF%AB%E9%80%9F%E9%80%9A%E8%BF%87CTS"><span class="nav-number">1.0.1.</span> <span class="nav-text">快速通过CTS</span></a></li></ol></li></ol></li></ol></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">Mathieu Lin</p>
  <div class="site-description" itemprop="description">这是一个记载了lzhow传奇的一生的博客</div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/archives/">
          <span class="site-state-item-count">14</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
        <span class="site-state-item-count">8</span>
        <span class="site-state-item-name">分类</span>
      </div>
      <div class="site-state-item site-state-tags">
        <span class="site-state-item-count">9</span>
        <span class="site-state-item-name">标签</span>
      </div>
  </nav>
</div>
  <div class="links-of-author site-overview-item animated">
      <span class="links-of-author-item">
        <a href="https://github.com/mathieulin" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;mathieulin" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:19241032@buaa.edu.cn" title="E-Mail → mailto:19241032@buaa.edu.cn" rel="noopener" target="_blank"><i class="fab fa-envelope fa-fw"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="http://121.199.35.110/" title="Todo → http:&#x2F;&#x2F;121.199.35.110&#x2F;" rel="noopener" target="_blank">Todo</a>
      </span>
      <span class="links-of-author-item">
        <a href="http://noietch.cn:88/" title="House → http:&#x2F;&#x2F;noietch.cn:88&#x2F;" rel="noopener" target="_blank">House</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-05d97c93-6101-4c53-8659-f5cf79396b93/0cdfad7c-f758-49ca-becf-6483b8fe95d5.apk" title="Douzero → https:&#x2F;&#x2F;vkceyugu.cdn.bspapp.com&#x2F;VKCEYUGU-05d97c93-6101-4c53-8659-f5cf79396b93&#x2F;0cdfad7c-f758-49ca-becf-6483b8fe95d5.apk" rel="noopener" target="_blank">Douzero</a>
      </span>
      <span class="links-of-author-item">
        <a href="/atom.xml" title="rss → &#x2F;atom.xml"><i class="fa fa-rss fa-fw"></i>rss</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://mathieulin.github.io/myblog" title="Another-blog → https:&#x2F;&#x2F;mathieulin.github.io&#x2F;myblog" rel="noopener" target="_blank">Another-blog</a>
      </span>
  </div>



        </div>
      </div>
    </div>
    <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="//music.163.com/outchain/player?type=2&id=1951671851&auto=1&height=66"></iframe>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button" aria-label="返回顶部">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://mathieulin.gitee.io/2022/05/06/CTS4/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="Mathieu Lin">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Mathieu's blog">
      <meta itemprop="description" content="这是一个记载了lzhow传奇的一生的博客">
    </span>

    <span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
      <meta itemprop="name" content="CTS4 | Mathieu's blog">
      <meta itemprop="description" content="">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          CTS4
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2022-05-06 22:59:31" itemprop="dateCreated datePublished" datetime="2022-05-06T22:59:31+08:00">2022-05-06</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar-check"></i>
      </span>
      <span class="post-meta-item-text">更新于</span>
      <time title="修改时间：2022-06-02 20:00:31" itemprop="dateModified" datetime="2022-06-02T20:00:31+08:00">2022-06-02</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/java/" itemprop="url" rel="index"><span itemprop="name">java</span></a>
        </span>
    </span>

  
  
  <span class="post-meta-item">
    
    <span class="post-meta-item-icon">
      <i class="far fa-comment"></i>
    </span>
    <span class="post-meta-item-text">评论数：</span>
  
    <a title="waline" href="/2022/05/06/CTS4/#waline" itemprop="discussionUrl">
      <span class="post-comments-count waline-comment-count" data-path="/2022/05/06/CTS4/" itemprop="commentCount"></span>
    </a>
  </span>
  
  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <h2 id="这是CTS代码"><a href="#这是CTS代码" class="headerlink" title="这是CTS代码"></a>这是CTS代码</h2><h4 id="快速通过CTS"><a href="#快速通过CTS" class="headerlink" title="快速通过CTS"></a>快速通过CTS</h4><p>获取评测数据（读书人的事情嘛）</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">String input=<span class="string">&quot;&quot;</span>;</span><br><span class="line"><span class="keyword">while</span> (<span class="literal">true</span>) &#123;</span><br><span class="line">            argStr = in.nextLine();</span><br><span class="line">    [+]     input+=argStr;</span><br><span class="line">    [+]		input+=<span class="string">&quot;;&quot;</span>;</span><br><span class="line">    </span><br><span class="line">            String[] splited = argStr.split(<span class="string">&quot;\\s+&quot;</span>);</span><br><span class="line">    </span><br><span class="line">    ......</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span> (Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;QUIT&quot;</span>))&#123;</span><br><span class="line">    [+]			System.out.println(input);	</span><br><span class="line">                System.out.println(<span class="string">&quot;----- Good Bye! -----&quot;</span>);</span><br><span class="line">                System.exit(<span class="number">0</span>);</span><br><span class="line">            &#125;</span><br></pre></td></tr></table></figure>



<p>然后你就得到了</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">TunakTunakTun;addLine Line13 4 Dazhongshi 28 Zhichunlu 30 Wudaokou 48 Shangdi 96 Xierqi 121 Longze 148;addLine Manchu 2 Shahe 20 Hamazhen 59 Wulongbei 150 Tangshancheng 207 Gaolimen 281 Fenghuangcheng 272 Sitaizi 430 Jiguanshan 498 Benxihu 586;addTrain K0012 Line13 22 90 7 120;addTrain G1001 Manchu 22 90 7 120 2.4 200;addTrain 00026 Line13 3 100 7 10 2.4 0;addUser xiaoyangren F 041401700330;addUser xiaoyinren M 054502770201;addUser xiaoxuesheng F 016103550800 2;importCert cert.csv;login 041401700330 xiaoyangren;buyTicket K0012 Dazhongshi Zhichunlu 1A 50;listOrder;logout;importCert cert2.csv;login 041401700330 xiaoyangren;buyTicket G1001 Shahe Gaolimen SB 50;listOrder;cancelOrder G1001 Shahe Gaolimen SB 49;listTrain Manchu;listOrder;logout;login 016103550800 xiaoxuesheng;buyTicket G1001 Shahe Gaolimen SB 1;buyTicket G1001 Shahe Gaolimen SB 3;payOrder;checkBalance;rechargeBalance 5000;payOrder;checkBalance;listOrder;logout;login 054502770201 xiaoyinren;buyTicket G1001 Shahe Gaolimen SB 12;listOrder;logout;QUIT;</span><br></pre></td></tr></table></figure>

<p>然后运行</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Transform</span> &#123;</span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span>&#123;</span><br><span class="line">        <span class="type">String</span> <span class="variable">input</span> <span class="operator">=</span> <span class="string">&quot;&quot;</span>  # 上面得到的input</span><br><span class="line">        String[] commands = input.split(<span class="string">&quot;;&quot;</span>);</span><br><span class="line">        <span class="type">int</span> i;</span><br><span class="line">        <span class="keyword">for</span>(i=<span class="number">0</span>;i&lt; commands.length;i++)&#123;</span><br><span class="line">            System.out.println(commands[i]);</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br></pre></td><td class="code"><pre><span class="line">TunakTunakTun</span><br><span class="line">addLine Line13 4 Dazhongshi 28 Zhichunlu 30 Wudaokou 48 Shangdi 96 Xierqi 121 Longze 148</span><br><span class="line">addLine Manchu 2 Shahe 20 Hamazhen 59 Wulongbei 150 Tangshancheng 207 Gaolimen 281 Fenghuangcheng 272 Sitaizi 430 Jiguanshan 498 Benxihu 586</span><br><span class="line">addTrain K0012 Line13 22 90 7 120</span><br><span class="line">addTrain G1001 Manchu 22 90 7 120 2.4 200</span><br><span class="line">addTrain 00026 Line13 3 100 7 10 2.4 0</span><br><span class="line">addUser xiaoyangren F 041401700330</span><br><span class="line">addUser xiaoyinren M 054502770201</span><br><span class="line">addUser xiaoxuesheng F 016103550800 2</span><br><span class="line">importCert cert.csv</span><br><span class="line">login 041401700330 xiaoyangren</span><br><span class="line">buyTicket K0012 Dazhongshi Zhichunlu 1A 50</span><br><span class="line">listOrder</span><br><span class="line">logout</span><br><span class="line">importCert cert2.csv</span><br><span class="line">login 041401700330 xiaoyangren</span><br><span class="line">buyTicket G1001 Shahe Gaolimen SB 50</span><br><span class="line">listOrder</span><br><span class="line">cancelOrder G1001 Shahe Gaolimen SB 49</span><br><span class="line">listTrain Manchu</span><br><span class="line">listOrder</span><br><span class="line">logout</span><br><span class="line">login 016103550800 xiaoxuesheng</span><br><span class="line">buyTicket G1001 Shahe Gaolimen SB 1</span><br><span class="line">buyTicket G1001 Shahe Gaolimen SB 3</span><br><span class="line">payOrder</span><br><span class="line">checkBalance</span><br><span class="line">rechargeBalance 5000</span><br><span class="line">payOrder</span><br><span class="line">checkBalance</span><br><span class="line">listOrder</span><br><span class="line">logout</span><br><span class="line">login 054502770201 xiaoyinren</span><br><span class="line">buyTicket G1001 Shahe Gaolimen SB 12</span><br><span class="line">listOrder</span><br><span class="line">logout</span><br><span class="line">QUIT</span><br></pre></td></tr></table></figure>



<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br><span class="line">262</span><br><span class="line">263</span><br><span class="line">264</span><br><span class="line">265</span><br><span class="line">266</span><br><span class="line">267</span><br><span class="line">268</span><br><span class="line">269</span><br><span class="line">270</span><br><span class="line">271</span><br><span class="line">272</span><br><span class="line">273</span><br><span class="line">274</span><br><span class="line">275</span><br><span class="line">276</span><br><span class="line">277</span><br><span class="line">278</span><br><span class="line">279</span><br><span class="line">280</span><br><span class="line">281</span><br><span class="line">282</span><br><span class="line">283</span><br><span class="line">284</span><br><span class="line">285</span><br><span class="line">286</span><br><span class="line">287</span><br><span class="line">288</span><br><span class="line">289</span><br><span class="line">290</span><br><span class="line">291</span><br><span class="line">292</span><br><span class="line">293</span><br><span class="line">294</span><br><span class="line">295</span><br><span class="line">296</span><br><span class="line">297</span><br><span class="line">298</span><br><span class="line">299</span><br><span class="line">300</span><br><span class="line">301</span><br><span class="line">302</span><br><span class="line">303</span><br><span class="line">304</span><br><span class="line">305</span><br><span class="line">306</span><br><span class="line">307</span><br><span class="line">308</span><br><span class="line">309</span><br><span class="line">310</span><br><span class="line">311</span><br><span class="line">312</span><br><span class="line">313</span><br><span class="line">314</span><br><span class="line">315</span><br><span class="line">316</span><br><span class="line">317</span><br><span class="line">318</span><br><span class="line">319</span><br><span class="line">320</span><br><span class="line">321</span><br><span class="line">322</span><br><span class="line">323</span><br><span class="line">324</span><br><span class="line">325</span><br><span class="line">326</span><br><span class="line">327</span><br><span class="line">328</span><br><span class="line">329</span><br><span class="line">330</span><br><span class="line">331</span><br><span class="line">332</span><br><span class="line">333</span><br><span class="line">334</span><br><span class="line">335</span><br><span class="line">336</span><br><span class="line">337</span><br><span class="line">338</span><br><span class="line">339</span><br><span class="line">340</span><br><span class="line">341</span><br><span class="line">342</span><br><span class="line">343</span><br><span class="line">344</span><br><span class="line">345</span><br><span class="line">346</span><br><span class="line">347</span><br><span class="line">348</span><br><span class="line">349</span><br><span class="line">350</span><br><span class="line">351</span><br><span class="line">352</span><br><span class="line">353</span><br><span class="line">354</span><br><span class="line">355</span><br><span class="line">356</span><br><span class="line">357</span><br><span class="line">358</span><br><span class="line">359</span><br><span class="line">360</span><br><span class="line">361</span><br><span class="line">362</span><br><span class="line">363</span><br><span class="line">364</span><br><span class="line">365</span><br><span class="line">366</span><br><span class="line">367</span><br><span class="line">368</span><br><span class="line">369</span><br><span class="line">370</span><br><span class="line">371</span><br><span class="line">372</span><br><span class="line">373</span><br><span class="line">374</span><br><span class="line">375</span><br><span class="line">376</span><br><span class="line">377</span><br><span class="line">378</span><br><span class="line">379</span><br><span class="line">380</span><br><span class="line">381</span><br><span class="line">382</span><br><span class="line">383</span><br><span class="line">384</span><br><span class="line">385</span><br><span class="line">386</span><br><span class="line">387</span><br><span class="line">388</span><br><span class="line">389</span><br><span class="line">390</span><br><span class="line">391</span><br><span class="line">392</span><br><span class="line">393</span><br><span class="line">394</span><br><span class="line">395</span><br><span class="line">396</span><br><span class="line">397</span><br><span class="line">398</span><br><span class="line">399</span><br><span class="line">400</span><br><span class="line">401</span><br><span class="line">402</span><br><span class="line">403</span><br><span class="line">404</span><br><span class="line">405</span><br><span class="line">406</span><br><span class="line">407</span><br><span class="line">408</span><br><span class="line">409</span><br><span class="line">410</span><br><span class="line">411</span><br><span class="line">412</span><br><span class="line">413</span><br><span class="line">414</span><br><span class="line">415</span><br><span class="line">416</span><br><span class="line">417</span><br><span class="line">418</span><br><span class="line">419</span><br><span class="line">420</span><br><span class="line">421</span><br><span class="line">422</span><br><span class="line">423</span><br><span class="line">424</span><br><span class="line">425</span><br><span class="line">426</span><br><span class="line">427</span><br><span class="line">428</span><br><span class="line">429</span><br><span class="line">430</span><br><span class="line">431</span><br><span class="line">432</span><br><span class="line">433</span><br><span class="line">434</span><br><span class="line">435</span><br><span class="line">436</span><br><span class="line">437</span><br><span class="line">438</span><br><span class="line">439</span><br><span class="line">440</span><br><span class="line">441</span><br><span class="line">442</span><br><span class="line">443</span><br><span class="line">444</span><br><span class="line">445</span><br><span class="line">446</span><br><span class="line">447</span><br><span class="line">448</span><br><span class="line">449</span><br><span class="line">450</span><br><span class="line">451</span><br><span class="line">452</span><br><span class="line">453</span><br><span class="line">454</span><br><span class="line">455</span><br><span class="line">456</span><br><span class="line">457</span><br><span class="line">458</span><br><span class="line">459</span><br><span class="line">460</span><br><span class="line">461</span><br><span class="line">462</span><br><span class="line">463</span><br><span class="line">464</span><br><span class="line">465</span><br><span class="line">466</span><br><span class="line">467</span><br><span class="line">468</span><br><span class="line">469</span><br><span class="line">470</span><br><span class="line">471</span><br><span class="line">472</span><br><span class="line">473</span><br><span class="line">474</span><br><span class="line">475</span><br><span class="line">476</span><br><span class="line">477</span><br><span class="line">478</span><br><span class="line">479</span><br><span class="line">480</span><br><span class="line">481</span><br><span class="line">482</span><br><span class="line">483</span><br><span class="line">484</span><br><span class="line">485</span><br><span class="line">486</span><br><span class="line">487</span><br><span class="line">488</span><br><span class="line">489</span><br><span class="line">490</span><br><span class="line">491</span><br><span class="line">492</span><br><span class="line">493</span><br><span class="line">494</span><br><span class="line">495</span><br><span class="line">496</span><br><span class="line">497</span><br><span class="line">498</span><br><span class="line">499</span><br><span class="line">500</span><br><span class="line">501</span><br><span class="line">502</span><br><span class="line">503</span><br><span class="line">504</span><br><span class="line">505</span><br><span class="line">506</span><br><span class="line">507</span><br><span class="line">508</span><br><span class="line">509</span><br><span class="line">510</span><br><span class="line">511</span><br><span class="line">512</span><br><span class="line">513</span><br><span class="line">514</span><br><span class="line">515</span><br><span class="line">516</span><br><span class="line">517</span><br><span class="line">518</span><br><span class="line">519</span><br><span class="line">520</span><br><span class="line">521</span><br><span class="line">522</span><br><span class="line">523</span><br><span class="line">524</span><br><span class="line">525</span><br><span class="line">526</span><br><span class="line">527</span><br><span class="line">528</span><br><span class="line">529</span><br><span class="line">530</span><br><span class="line">531</span><br><span class="line">532</span><br><span class="line">533</span><br><span class="line">534</span><br><span class="line">535</span><br><span class="line">536</span><br><span class="line">537</span><br><span class="line">538</span><br><span class="line">539</span><br><span class="line">540</span><br><span class="line">541</span><br><span class="line">542</span><br><span class="line">543</span><br><span class="line">544</span><br><span class="line">545</span><br><span class="line">546</span><br><span class="line">547</span><br><span class="line">548</span><br><span class="line">549</span><br><span class="line">550</span><br><span class="line">551</span><br><span class="line">552</span><br><span class="line">553</span><br><span class="line">554</span><br><span class="line">555</span><br><span class="line">556</span><br><span class="line">557</span><br><span class="line">558</span><br><span class="line">559</span><br><span class="line">560</span><br><span class="line">561</span><br><span class="line">562</span><br><span class="line">563</span><br><span class="line">564</span><br><span class="line">565</span><br><span class="line">566</span><br><span class="line">567</span><br><span class="line">568</span><br><span class="line">569</span><br><span class="line">570</span><br><span class="line">571</span><br><span class="line">572</span><br><span class="line">573</span><br><span class="line">574</span><br><span class="line">575</span><br><span class="line">576</span><br><span class="line">577</span><br><span class="line">578</span><br><span class="line">579</span><br><span class="line">580</span><br><span class="line">581</span><br><span class="line">582</span><br><span class="line">583</span><br><span class="line">584</span><br><span class="line">585</span><br><span class="line">586</span><br><span class="line">587</span><br><span class="line">588</span><br><span class="line">589</span><br><span class="line">590</span><br><span class="line">591</span><br><span class="line">592</span><br><span class="line">593</span><br><span class="line">594</span><br><span class="line">595</span><br><span class="line">596</span><br><span class="line">597</span><br><span class="line">598</span><br><span class="line">599</span><br><span class="line">600</span><br><span class="line">601</span><br><span class="line">602</span><br><span class="line">603</span><br><span class="line">604</span><br><span class="line">605</span><br><span class="line">606</span><br><span class="line">607</span><br><span class="line">608</span><br><span class="line">609</span><br><span class="line">610</span><br><span class="line">611</span><br><span class="line">612</span><br><span class="line">613</span><br><span class="line">614</span><br><span class="line">615</span><br><span class="line">616</span><br><span class="line">617</span><br><span class="line">618</span><br><span class="line">619</span><br><span class="line">620</span><br><span class="line">621</span><br><span class="line">622</span><br><span class="line">623</span><br><span class="line">624</span><br><span class="line">625</span><br><span class="line">626</span><br><span class="line">627</span><br><span class="line">628</span><br><span class="line">629</span><br><span class="line">630</span><br><span class="line">631</span><br><span class="line">632</span><br><span class="line">633</span><br><span class="line">634</span><br><span class="line">635</span><br><span class="line">636</span><br><span class="line">637</span><br><span class="line">638</span><br><span class="line">639</span><br><span class="line">640</span><br><span class="line">641</span><br><span class="line">642</span><br><span class="line">643</span><br><span class="line">644</span><br><span class="line">645</span><br><span class="line">646</span><br><span class="line">647</span><br><span class="line">648</span><br><span class="line">649</span><br><span class="line">650</span><br><span class="line">651</span><br><span class="line">652</span><br><span class="line">653</span><br><span class="line">654</span><br><span class="line">655</span><br><span class="line">656</span><br><span class="line">657</span><br><span class="line">658</span><br><span class="line">659</span><br><span class="line">660</span><br><span class="line">661</span><br><span class="line">662</span><br><span class="line">663</span><br><span class="line">664</span><br><span class="line">665</span><br><span class="line">666</span><br><span class="line">667</span><br><span class="line">668</span><br><span class="line">669</span><br><span class="line">670</span><br><span class="line">671</span><br><span class="line">672</span><br><span class="line">673</span><br><span class="line">674</span><br><span class="line">675</span><br><span class="line">676</span><br><span class="line">677</span><br><span class="line">678</span><br><span class="line">679</span><br><span class="line">680</span><br><span class="line">681</span><br><span class="line">682</span><br><span class="line">683</span><br><span class="line">684</span><br><span class="line">685</span><br><span class="line">686</span><br><span class="line">687</span><br><span class="line">688</span><br><span class="line">689</span><br><span class="line">690</span><br><span class="line">691</span><br><span class="line">692</span><br><span class="line">693</span><br><span class="line">694</span><br><span class="line">695</span><br><span class="line">696</span><br><span class="line">697</span><br><span class="line">698</span><br><span class="line">699</span><br><span class="line">700</span><br><span class="line">701</span><br><span class="line">702</span><br><span class="line">703</span><br><span class="line">704</span><br><span class="line">705</span><br><span class="line">706</span><br><span class="line">707</span><br><span class="line">708</span><br><span class="line">709</span><br><span class="line">710</span><br><span class="line">711</span><br><span class="line">712</span><br><span class="line">713</span><br><span class="line">714</span><br><span class="line">715</span><br><span class="line">716</span><br><span class="line">717</span><br><span class="line">718</span><br><span class="line">719</span><br><span class="line">720</span><br><span class="line">721</span><br><span class="line">722</span><br><span class="line">723</span><br><span class="line">724</span><br><span class="line">725</span><br><span class="line">726</span><br><span class="line">727</span><br><span class="line">728</span><br><span class="line">729</span><br><span class="line">730</span><br><span class="line">731</span><br><span class="line">732</span><br><span class="line">733</span><br><span class="line">734</span><br><span class="line">735</span><br><span class="line">736</span><br><span class="line">737</span><br><span class="line">738</span><br><span class="line">739</span><br><span class="line">740</span><br><span class="line">741</span><br><span class="line">742</span><br><span class="line">743</span><br><span class="line">744</span><br><span class="line">745</span><br><span class="line">746</span><br><span class="line">747</span><br><span class="line">748</span><br><span class="line">749</span><br><span class="line">750</span><br><span class="line">751</span><br><span class="line">752</span><br><span class="line">753</span><br><span class="line">754</span><br><span class="line">755</span><br><span class="line">756</span><br><span class="line">757</span><br><span class="line">758</span><br><span class="line">759</span><br><span class="line">760</span><br><span class="line">761</span><br><span class="line">762</span><br><span class="line">763</span><br><span class="line">764</span><br><span class="line">765</span><br><span class="line">766</span><br><span class="line">767</span><br><span class="line">768</span><br><span class="line">769</span><br><span class="line">770</span><br><span class="line">771</span><br><span class="line">772</span><br><span class="line">773</span><br><span class="line">774</span><br><span class="line">775</span><br><span class="line">776</span><br><span class="line">777</span><br><span class="line">778</span><br><span class="line">779</span><br><span class="line">780</span><br><span class="line">781</span><br><span class="line">782</span><br><span class="line">783</span><br><span class="line">784</span><br><span class="line">785</span><br><span class="line">786</span><br><span class="line">787</span><br><span class="line">788</span><br><span class="line">789</span><br><span class="line">790</span><br><span class="line">791</span><br><span class="line">792</span><br><span class="line">793</span><br><span class="line">794</span><br><span class="line">795</span><br><span class="line">796</span><br><span class="line">797</span><br><span class="line">798</span><br><span class="line">799</span><br><span class="line">800</span><br><span class="line">801</span><br><span class="line">802</span><br><span class="line">803</span><br><span class="line">804</span><br><span class="line">805</span><br><span class="line">806</span><br><span class="line">807</span><br><span class="line">808</span><br><span class="line">809</span><br><span class="line">810</span><br><span class="line">811</span><br><span class="line">812</span><br><span class="line">813</span><br><span class="line">814</span><br><span class="line">815</span><br><span class="line">816</span><br><span class="line">817</span><br><span class="line">818</span><br><span class="line">819</span><br><span class="line">820</span><br><span class="line">821</span><br><span class="line">822</span><br><span class="line">823</span><br><span class="line">824</span><br><span class="line">825</span><br><span class="line">826</span><br><span class="line">827</span><br><span class="line">828</span><br><span class="line">829</span><br><span class="line">830</span><br><span class="line">831</span><br><span class="line">832</span><br><span class="line">833</span><br><span class="line">834</span><br><span class="line">835</span><br><span class="line">836</span><br><span class="line">837</span><br><span class="line">838</span><br><span class="line">839</span><br><span class="line">840</span><br><span class="line">841</span><br><span class="line">842</span><br><span class="line">843</span><br><span class="line">844</span><br><span class="line">845</span><br><span class="line">846</span><br><span class="line">847</span><br><span class="line">848</span><br><span class="line">849</span><br><span class="line">850</span><br><span class="line">851</span><br><span class="line">852</span><br><span class="line">853</span><br><span class="line">854</span><br><span class="line">855</span><br><span class="line">856</span><br><span class="line">857</span><br><span class="line">858</span><br><span class="line">859</span><br><span class="line">860</span><br><span class="line">861</span><br><span class="line">862</span><br><span class="line">863</span><br><span class="line">864</span><br><span class="line">865</span><br><span class="line">866</span><br><span class="line">867</span><br><span class="line">868</span><br><span class="line">869</span><br><span class="line">870</span><br><span class="line">871</span><br><span class="line">872</span><br><span class="line">873</span><br><span class="line">874</span><br><span class="line">875</span><br><span class="line">876</span><br><span class="line">877</span><br><span class="line">878</span><br><span class="line">879</span><br><span class="line">880</span><br><span class="line">881</span><br><span class="line">882</span><br><span class="line">883</span><br><span class="line">884</span><br><span class="line">885</span><br><span class="line">886</span><br><span class="line">887</span><br><span class="line">888</span><br><span class="line">889</span><br><span class="line">890</span><br><span class="line">891</span><br><span class="line">892</span><br><span class="line">893</span><br><span class="line">894</span><br><span class="line">895</span><br><span class="line">896</span><br><span class="line">897</span><br><span class="line">898</span><br><span class="line">899</span><br><span class="line">900</span><br><span class="line">901</span><br><span class="line">902</span><br><span class="line">903</span><br><span class="line">904</span><br><span class="line">905</span><br><span class="line">906</span><br><span class="line">907</span><br><span class="line">908</span><br><span class="line">909</span><br><span class="line">910</span><br><span class="line">911</span><br><span class="line">912</span><br><span class="line">913</span><br><span class="line">914</span><br><span class="line">915</span><br><span class="line">916</span><br><span class="line">917</span><br><span class="line">918</span><br><span class="line">919</span><br><span class="line">920</span><br><span class="line">921</span><br><span class="line">922</span><br><span class="line">923</span><br><span class="line">924</span><br><span class="line">925</span><br><span class="line">926</span><br><span class="line">927</span><br><span class="line">928</span><br><span class="line">929</span><br><span class="line">930</span><br><span class="line">931</span><br><span class="line">932</span><br><span class="line">933</span><br><span class="line">934</span><br><span class="line">935</span><br><span class="line">936</span><br><span class="line">937</span><br><span class="line">938</span><br><span class="line">939</span><br><span class="line">940</span><br><span class="line">941</span><br><span class="line">942</span><br><span class="line">943</span><br><span class="line">944</span><br><span class="line">945</span><br><span class="line">946</span><br><span class="line">947</span><br><span class="line">948</span><br><span class="line">949</span><br><span class="line">950</span><br><span class="line">951</span><br><span class="line">952</span><br><span class="line">953</span><br><span class="line">954</span><br><span class="line">955</span><br><span class="line">956</span><br><span class="line">957</span><br><span class="line">958</span><br><span class="line">959</span><br><span class="line">960</span><br><span class="line">961</span><br><span class="line">962</span><br><span class="line">963</span><br><span class="line">964</span><br><span class="line">965</span><br><span class="line">966</span><br><span class="line">967</span><br><span class="line">968</span><br><span class="line">969</span><br><span class="line">970</span><br><span class="line">971</span><br><span class="line">972</span><br><span class="line">973</span><br><span class="line">974</span><br><span class="line">975</span><br><span class="line">976</span><br><span class="line">977</span><br><span class="line">978</span><br><span class="line">979</span><br><span class="line">980</span><br><span class="line">981</span><br><span class="line">982</span><br><span class="line">983</span><br><span class="line">984</span><br><span class="line">985</span><br><span class="line">986</span><br><span class="line">987</span><br><span class="line">988</span><br><span class="line">989</span><br><span class="line">990</span><br><span class="line">991</span><br><span class="line">992</span><br><span class="line">993</span><br><span class="line">994</span><br><span class="line">995</span><br><span class="line">996</span><br><span class="line">997</span><br><span class="line">998</span><br><span class="line">999</span><br><span class="line">1000</span><br><span class="line">1001</span><br><span class="line">1002</span><br><span class="line">1003</span><br><span class="line">1004</span><br><span class="line">1005</span><br><span class="line">1006</span><br><span class="line">1007</span><br><span class="line">1008</span><br><span class="line">1009</span><br><span class="line">1010</span><br><span class="line">1011</span><br><span class="line">1012</span><br><span class="line">1013</span><br><span class="line">1014</span><br><span class="line">1015</span><br><span class="line">1016</span><br><span class="line">1017</span><br><span class="line">1018</span><br><span class="line">1019</span><br><span class="line">1020</span><br><span class="line">1021</span><br><span class="line">1022</span><br><span class="line">1023</span><br><span class="line">1024</span><br><span class="line">1025</span><br><span class="line">1026</span><br><span class="line">1027</span><br><span class="line">1028</span><br><span class="line">1029</span><br><span class="line">1030</span><br><span class="line">1031</span><br><span class="line">1032</span><br><span class="line">1033</span><br><span class="line">1034</span><br><span class="line">1035</span><br><span class="line">1036</span><br><span class="line">1037</span><br><span class="line">1038</span><br><span class="line">1039</span><br><span class="line">1040</span><br><span class="line">1041</span><br><span class="line">1042</span><br><span class="line">1043</span><br><span class="line">1044</span><br><span class="line">1045</span><br><span class="line">1046</span><br><span class="line">1047</span><br><span class="line">1048</span><br><span class="line">1049</span><br><span class="line">1050</span><br><span class="line">1051</span><br><span class="line">1052</span><br><span class="line">1053</span><br><span class="line">1054</span><br><span class="line">1055</span><br><span class="line">1056</span><br><span class="line">1057</span><br><span class="line">1058</span><br><span class="line">1059</span><br><span class="line">1060</span><br><span class="line">1061</span><br><span class="line">1062</span><br><span class="line">1063</span><br><span class="line">1064</span><br><span class="line">1065</span><br><span class="line">1066</span><br><span class="line">1067</span><br><span class="line">1068</span><br><span class="line">1069</span><br><span class="line">1070</span><br><span class="line">1071</span><br><span class="line">1072</span><br><span class="line">1073</span><br><span class="line">1074</span><br><span class="line">1075</span><br><span class="line">1076</span><br><span class="line">1077</span><br><span class="line">1078</span><br><span class="line">1079</span><br><span class="line">1080</span><br><span class="line">1081</span><br><span class="line">1082</span><br><span class="line">1083</span><br><span class="line">1084</span><br><span class="line">1085</span><br><span class="line">1086</span><br><span class="line">1087</span><br><span class="line">1088</span><br><span class="line">1089</span><br><span class="line">1090</span><br><span class="line">1091</span><br><span class="line">1092</span><br><span class="line">1093</span><br><span class="line">1094</span><br><span class="line">1095</span><br><span class="line">1096</span><br><span class="line">1097</span><br><span class="line">1098</span><br><span class="line">1099</span><br><span class="line">1100</span><br><span class="line">1101</span><br><span class="line">1102</span><br><span class="line">1103</span><br><span class="line">1104</span><br><span class="line">1105</span><br><span class="line">1106</span><br><span class="line">1107</span><br><span class="line">1108</span><br><span class="line">1109</span><br><span class="line">1110</span><br><span class="line">1111</span><br><span class="line">1112</span><br><span class="line">1113</span><br><span class="line">1114</span><br><span class="line">1115</span><br><span class="line">1116</span><br><span class="line">1117</span><br><span class="line">1118</span><br><span class="line">1119</span><br><span class="line">1120</span><br><span class="line">1121</span><br><span class="line">1122</span><br><span class="line">1123</span><br><span class="line">1124</span><br><span class="line">1125</span><br><span class="line">1126</span><br><span class="line">1127</span><br><span class="line">1128</span><br><span class="line">1129</span><br><span class="line">1130</span><br><span class="line">1131</span><br><span class="line">1132</span><br><span class="line">1133</span><br><span class="line">1134</span><br><span class="line">1135</span><br><span class="line">1136</span><br><span class="line">1137</span><br><span class="line">1138</span><br><span class="line">1139</span><br><span class="line">1140</span><br><span class="line">1141</span><br><span class="line">1142</span><br><span class="line">1143</span><br><span class="line">1144</span><br><span class="line">1145</span><br><span class="line">1146</span><br><span class="line">1147</span><br><span class="line">1148</span><br><span class="line">1149</span><br><span class="line">1150</span><br><span class="line">1151</span><br><span class="line">1152</span><br><span class="line">1153</span><br><span class="line">1154</span><br><span class="line">1155</span><br><span class="line">1156</span><br><span class="line">1157</span><br><span class="line">1158</span><br><span class="line">1159</span><br><span class="line">1160</span><br><span class="line">1161</span><br><span class="line">1162</span><br><span class="line">1163</span><br><span class="line">1164</span><br><span class="line">1165</span><br><span class="line">1166</span><br><span class="line">1167</span><br><span class="line">1168</span><br><span class="line">1169</span><br><span class="line">1170</span><br><span class="line">1171</span><br><span class="line">1172</span><br><span class="line">1173</span><br><span class="line">1174</span><br><span class="line">1175</span><br><span class="line">1176</span><br><span class="line">1177</span><br><span class="line">1178</span><br><span class="line">1179</span><br><span class="line">1180</span><br><span class="line">1181</span><br><span class="line">1182</span><br><span class="line">1183</span><br><span class="line">1184</span><br><span class="line">1185</span><br><span class="line">1186</span><br><span class="line">1187</span><br><span class="line">1188</span><br><span class="line">1189</span><br><span class="line">1190</span><br><span class="line">1191</span><br><span class="line">1192</span><br><span class="line">1193</span><br><span class="line">1194</span><br><span class="line">1195</span><br><span class="line">1196</span><br><span class="line">1197</span><br><span class="line">1198</span><br><span class="line">1199</span><br><span class="line">1200</span><br><span class="line">1201</span><br><span class="line">1202</span><br><span class="line">1203</span><br><span class="line">1204</span><br><span class="line">1205</span><br><span class="line">1206</span><br><span class="line">1207</span><br><span class="line">1208</span><br><span class="line">1209</span><br><span class="line">1210</span><br><span class="line">1211</span><br><span class="line">1212</span><br><span class="line">1213</span><br><span class="line">1214</span><br><span class="line">1215</span><br><span class="line">1216</span><br><span class="line">1217</span><br><span class="line">1218</span><br><span class="line">1219</span><br><span class="line">1220</span><br><span class="line">1221</span><br><span class="line">1222</span><br><span class="line">1223</span><br><span class="line">1224</span><br><span class="line">1225</span><br><span class="line">1226</span><br><span class="line">1227</span><br><span class="line">1228</span><br><span class="line">1229</span><br><span class="line">1230</span><br><span class="line">1231</span><br><span class="line">1232</span><br><span class="line">1233</span><br><span class="line">1234</span><br><span class="line">1235</span><br><span class="line">1236</span><br><span class="line">1237</span><br><span class="line">1238</span><br><span class="line">1239</span><br><span class="line">1240</span><br><span class="line">1241</span><br><span class="line">1242</span><br><span class="line">1243</span><br><span class="line">1244</span><br><span class="line">1245</span><br><span class="line">1246</span><br><span class="line">1247</span><br><span class="line">1248</span><br><span class="line">1249</span><br><span class="line">1250</span><br><span class="line">1251</span><br><span class="line">1252</span><br><span class="line">1253</span><br><span class="line">1254</span><br><span class="line">1255</span><br><span class="line">1256</span><br><span class="line">1257</span><br><span class="line">1258</span><br><span class="line">1259</span><br><span class="line">1260</span><br><span class="line">1261</span><br><span class="line">1262</span><br><span class="line">1263</span><br><span class="line">1264</span><br><span class="line">1265</span><br><span class="line">1266</span><br><span class="line">1267</span><br><span class="line">1268</span><br><span class="line">1269</span><br><span class="line">1270</span><br><span class="line">1271</span><br><span class="line">1272</span><br><span class="line">1273</span><br><span class="line">1274</span><br><span class="line">1275</span><br><span class="line">1276</span><br><span class="line">1277</span><br><span class="line">1278</span><br><span class="line">1279</span><br><span class="line">1280</span><br><span class="line">1281</span><br><span class="line">1282</span><br><span class="line">1283</span><br><span class="line">1284</span><br><span class="line">1285</span><br><span class="line">1286</span><br><span class="line">1287</span><br><span class="line">1288</span><br><span class="line">1289</span><br><span class="line">1290</span><br><span class="line">1291</span><br><span class="line">1292</span><br><span class="line">1293</span><br><span class="line">1294</span><br><span class="line">1295</span><br><span class="line">1296</span><br><span class="line">1297</span><br><span class="line">1298</span><br><span class="line">1299</span><br><span class="line">1300</span><br><span class="line">1301</span><br><span class="line">1302</span><br><span class="line">1303</span><br><span class="line">1304</span><br><span class="line">1305</span><br><span class="line">1306</span><br><span class="line">1307</span><br><span class="line">1308</span><br><span class="line">1309</span><br><span class="line">1310</span><br><span class="line">1311</span><br><span class="line">1312</span><br><span class="line">1313</span><br><span class="line">1314</span><br><span class="line">1315</span><br><span class="line">1316</span><br><span class="line">1317</span><br><span class="line">1318</span><br><span class="line">1319</span><br><span class="line">1320</span><br><span class="line">1321</span><br><span class="line">1322</span><br><span class="line">1323</span><br><span class="line">1324</span><br><span class="line">1325</span><br><span class="line">1326</span><br><span class="line">1327</span><br><span class="line">1328</span><br><span class="line">1329</span><br><span class="line">1330</span><br><span class="line">1331</span><br><span class="line">1332</span><br><span class="line">1333</span><br><span class="line">1334</span><br><span class="line">1335</span><br><span class="line">1336</span><br><span class="line">1337</span><br><span class="line">1338</span><br><span class="line">1339</span><br><span class="line">1340</span><br><span class="line">1341</span><br><span class="line">1342</span><br><span class="line">1343</span><br><span class="line">1344</span><br><span class="line">1345</span><br><span class="line">1346</span><br><span class="line">1347</span><br><span class="line">1348</span><br><span class="line">1349</span><br><span class="line">1350</span><br><span class="line">1351</span><br><span class="line">1352</span><br><span class="line">1353</span><br><span class="line">1354</span><br><span class="line">1355</span><br><span class="line">1356</span><br><span class="line">1357</span><br><span class="line">1358</span><br><span class="line">1359</span><br><span class="line">1360</span><br><span class="line">1361</span><br><span class="line">1362</span><br><span class="line">1363</span><br><span class="line">1364</span><br><span class="line">1365</span><br><span class="line">1366</span><br><span class="line">1367</span><br><span class="line">1368</span><br><span class="line">1369</span><br><span class="line">1370</span><br><span class="line">1371</span><br><span class="line">1372</span><br><span class="line">1373</span><br><span class="line">1374</span><br><span class="line">1375</span><br><span class="line">1376</span><br><span class="line">1377</span><br><span class="line">1378</span><br><span class="line">1379</span><br><span class="line">1380</span><br><span class="line">1381</span><br><span class="line">1382</span><br><span class="line">1383</span><br><span class="line">1384</span><br><span class="line">1385</span><br><span class="line">1386</span><br><span class="line">1387</span><br><span class="line">1388</span><br><span class="line">1389</span><br><span class="line">1390</span><br><span class="line">1391</span><br><span class="line">1392</span><br><span class="line">1393</span><br><span class="line">1394</span><br><span class="line">1395</span><br><span class="line">1396</span><br><span class="line">1397</span><br><span class="line">1398</span><br><span class="line">1399</span><br><span class="line">1400</span><br><span class="line">1401</span><br><span class="line">1402</span><br><span class="line">1403</span><br><span class="line">1404</span><br><span class="line">1405</span><br><span class="line">1406</span><br><span class="line">1407</span><br><span class="line">1408</span><br><span class="line">1409</span><br><span class="line">1410</span><br><span class="line">1411</span><br><span class="line">1412</span><br><span class="line">1413</span><br><span class="line">1414</span><br><span class="line">1415</span><br><span class="line">1416</span><br><span class="line">1417</span><br><span class="line">1418</span><br><span class="line">1419</span><br><span class="line">1420</span><br><span class="line">1421</span><br><span class="line">1422</span><br><span class="line">1423</span><br><span class="line">1424</span><br><span class="line">1425</span><br><span class="line">1426</span><br><span class="line">1427</span><br><span class="line">1428</span><br><span class="line">1429</span><br><span class="line">1430</span><br><span class="line">1431</span><br><span class="line">1432</span><br><span class="line">1433</span><br><span class="line">1434</span><br><span class="line">1435</span><br><span class="line">1436</span><br><span class="line">1437</span><br><span class="line">1438</span><br><span class="line">1439</span><br><span class="line">1440</span><br><span class="line">1441</span><br><span class="line">1442</span><br><span class="line">1443</span><br><span class="line">1444</span><br><span class="line">1445</span><br><span class="line">1446</span><br><span class="line">1447</span><br><span class="line">1448</span><br><span class="line">1449</span><br><span class="line">1450</span><br><span class="line">1451</span><br><span class="line">1452</span><br><span class="line">1453</span><br><span class="line">1454</span><br><span class="line">1455</span><br><span class="line">1456</span><br><span class="line">1457</span><br><span class="line">1458</span><br><span class="line">1459</span><br><span class="line">1460</span><br><span class="line">1461</span><br><span class="line">1462</span><br><span class="line">1463</span><br><span class="line">1464</span><br><span class="line">1465</span><br><span class="line">1466</span><br><span class="line">1467</span><br><span class="line">1468</span><br><span class="line">1469</span><br><span class="line">1470</span><br><span class="line">1471</span><br><span class="line">1472</span><br><span class="line">1473</span><br><span class="line">1474</span><br><span class="line">1475</span><br><span class="line">1476</span><br><span class="line">1477</span><br><span class="line">1478</span><br><span class="line">1479</span><br><span class="line">1480</span><br><span class="line">1481</span><br><span class="line">1482</span><br><span class="line">1483</span><br><span class="line">1484</span><br><span class="line">1485</span><br><span class="line">1486</span><br><span class="line">1487</span><br><span class="line">1488</span><br><span class="line">1489</span><br><span class="line">1490</span><br><span class="line">1491</span><br><span class="line">1492</span><br><span class="line">1493</span><br><span class="line">1494</span><br><span class="line">1495</span><br><span class="line">1496</span><br><span class="line">1497</span><br><span class="line">1498</span><br><span class="line">1499</span><br><span class="line">1500</span><br><span class="line">1501</span><br><span class="line">1502</span><br><span class="line">1503</span><br><span class="line">1504</span><br><span class="line">1505</span><br><span class="line">1506</span><br><span class="line">1507</span><br><span class="line">1508</span><br><span class="line">1509</span><br><span class="line">1510</span><br><span class="line">1511</span><br><span class="line">1512</span><br><span class="line">1513</span><br><span class="line">1514</span><br><span class="line">1515</span><br><span class="line">1516</span><br><span class="line">1517</span><br><span class="line">1518</span><br><span class="line">1519</span><br><span class="line">1520</span><br><span class="line">1521</span><br><span class="line">1522</span><br><span class="line">1523</span><br><span class="line">1524</span><br><span class="line">1525</span><br><span class="line">1526</span><br><span class="line">1527</span><br><span class="line">1528</span><br><span class="line">1529</span><br><span class="line">1530</span><br><span class="line">1531</span><br><span class="line">1532</span><br><span class="line">1533</span><br><span class="line">1534</span><br><span class="line">1535</span><br><span class="line">1536</span><br><span class="line">1537</span><br><span class="line">1538</span><br><span class="line">1539</span><br><span class="line">1540</span><br><span class="line">1541</span><br><span class="line">1542</span><br><span class="line">1543</span><br><span class="line">1544</span><br><span class="line">1545</span><br><span class="line">1546</span><br><span class="line">1547</span><br><span class="line">1548</span><br><span class="line">1549</span><br><span class="line">1550</span><br><span class="line">1551</span><br><span class="line">1552</span><br><span class="line">1553</span><br><span class="line">1554</span><br><span class="line">1555</span><br><span class="line">1556</span><br><span class="line">1557</span><br><span class="line">1558</span><br><span class="line">1559</span><br><span class="line">1560</span><br><span class="line">1561</span><br><span class="line">1562</span><br><span class="line">1563</span><br><span class="line">1564</span><br><span class="line">1565</span><br><span class="line">1566</span><br><span class="line">1567</span><br><span class="line">1568</span><br><span class="line">1569</span><br><span class="line">1570</span><br><span class="line">1571</span><br><span class="line">1572</span><br><span class="line">1573</span><br><span class="line">1574</span><br><span class="line">1575</span><br><span class="line">1576</span><br><span class="line">1577</span><br><span class="line">1578</span><br><span class="line">1579</span><br><span class="line">1580</span><br><span class="line">1581</span><br><span class="line">1582</span><br><span class="line">1583</span><br><span class="line">1584</span><br><span class="line">1585</span><br><span class="line">1586</span><br><span class="line">1587</span><br><span class="line">1588</span><br><span class="line">1589</span><br><span class="line">1590</span><br><span class="line">1591</span><br><span class="line">1592</span><br><span class="line">1593</span><br><span class="line">1594</span><br><span class="line">1595</span><br><span class="line">1596</span><br><span class="line">1597</span><br><span class="line">1598</span><br><span class="line">1599</span><br><span class="line">1600</span><br><span class="line">1601</span><br><span class="line">1602</span><br><span class="line">1603</span><br><span class="line">1604</span><br><span class="line">1605</span><br><span class="line">1606</span><br><span class="line">1607</span><br><span class="line">1608</span><br><span class="line">1609</span><br><span class="line">1610</span><br><span class="line">1611</span><br><span class="line">1612</span><br><span class="line">1613</span><br><span class="line">1614</span><br><span class="line">1615</span><br><span class="line">1616</span><br><span class="line">1617</span><br><span class="line">1618</span><br><span class="line">1619</span><br><span class="line">1620</span><br><span class="line">1621</span><br><span class="line">1622</span><br><span class="line">1623</span><br><span class="line">1624</span><br><span class="line">1625</span><br><span class="line">1626</span><br><span class="line">1627</span><br><span class="line">1628</span><br><span class="line">1629</span><br><span class="line">1630</span><br><span class="line">1631</span><br><span class="line">1632</span><br><span class="line">1633</span><br><span class="line">1634</span><br><span class="line">1635</span><br><span class="line">1636</span><br><span class="line">1637</span><br><span class="line">1638</span><br><span class="line">1639</span><br><span class="line">1640</span><br><span class="line">1641</span><br><span class="line">1642</span><br><span class="line">1643</span><br><span class="line">1644</span><br><span class="line">1645</span><br><span class="line">1646</span><br><span class="line">1647</span><br><span class="line">1648</span><br><span class="line">1649</span><br><span class="line">1650</span><br><span class="line">1651</span><br><span class="line">1652</span><br><span class="line">1653</span><br><span class="line">1654</span><br><span class="line">1655</span><br><span class="line">1656</span><br><span class="line">1657</span><br><span class="line">1658</span><br><span class="line">1659</span><br><span class="line">1660</span><br><span class="line">1661</span><br><span class="line">1662</span><br><span class="line">1663</span><br><span class="line">1664</span><br><span class="line">1665</span><br><span class="line">1666</span><br><span class="line">1667</span><br><span class="line">1668</span><br><span class="line">1669</span><br><span class="line">1670</span><br><span class="line">1671</span><br><span class="line">1672</span><br><span class="line">1673</span><br><span class="line">1674</span><br><span class="line">1675</span><br><span class="line">1676</span><br><span class="line">1677</span><br><span class="line">1678</span><br><span class="line">1679</span><br><span class="line">1680</span><br><span class="line">1681</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.*;</span><br><span class="line"><span class="keyword">import</span> java.util.*;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> <span class="keyword">static</span> java.lang.Math.abs;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Test</span> &#123;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">static</span> <span class="type">boolean</span> <span class="variable">isLogin</span> <span class="operator">=</span> <span class="literal">false</span>;</span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String args[])</span> <span class="keyword">throws</span> IOException &#123;</span><br><span class="line"></span><br><span class="line">        <span class="type">Scanner</span> <span class="variable">in</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Scanner</span>(System.in);</span><br><span class="line">        String argStr;</span><br><span class="line">        Vector&lt;User&gt; userList = <span class="keyword">new</span> <span class="title class_">Vector</span>&lt;User&gt;();</span><br><span class="line">        Vector&lt;Line&gt; lineList = <span class="keyword">new</span> <span class="title class_">Vector</span>&lt;Line&gt;();</span><br><span class="line">        Vector&lt;Train&gt; trainList = <span class="keyword">new</span> <span class="title class_">Vector</span>&lt;Train&gt;();</span><br><span class="line">        <span class="type">Vector</span> <span class="variable">stationList</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Vector</span>();</span><br><span class="line">        HashMap&lt;String, Boolean&gt; certMsg = <span class="keyword">new</span> <span class="title class_">HashMap</span>&lt;String, Boolean&gt;();</span><br><span class="line">        <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">User</span>();</span><br><span class="line">        <span class="type">boolean</span> <span class="variable">isAdmin</span> <span class="operator">=</span> <span class="literal">false</span>;</span><br><span class="line">        <span class="keyword">while</span> (<span class="literal">true</span>) &#123;</span><br><span class="line">            argStr = in.nextLine();</span><br><span class="line">            String[] splited = argStr.split(<span class="string">&quot;\\s+&quot;</span>);</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;addUser&quot;</span>))&#123;</span><br><span class="line">                addUser(userList, splited);</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span> (Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;QUIT&quot;</span>))&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;----- Good Bye! -----&quot;</span>);</span><br><span class="line">                System.exit(<span class="number">0</span>);</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;login&quot;</span>))&#123;</span><br><span class="line">                <span class="type">int</span> <span class="variable">index</span> <span class="operator">=</span> login(splited, isLogin, userList);</span><br><span class="line">                <span class="keyword">if</span>( index != -<span class="number">1</span>)&#123;</span><br><span class="line">                    isLogin = <span class="literal">true</span>;</span><br><span class="line">                    user = userList.get(index);</span><br><span class="line">                &#125;</span><br><span class="line"></span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;logout&quot;</span>))&#123;</span><br><span class="line">                <span class="keyword">if</span>(logout(splited, isLogin))&#123;</span><br><span class="line">                    isLogin = <span class="literal">false</span>;</span><br><span class="line">                    user = <span class="literal">null</span>;</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line"></span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span> (Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;TunakTunakTun&quot;</span>))&#123;</span><br><span class="line">                <span class="keyword">if</span>(!isAdmin)&#123;</span><br><span class="line">                    isAdmin = <span class="literal">true</span>;</span><br><span class="line">                    System.out.println(<span class="string">&quot;DuluDulu&quot;</span>);</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> &#123;</span><br><span class="line">                    System.out.println(<span class="string">&quot;WanNiBa&quot;</span>);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span> (Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;NutKanutKanut&quot;</span>))&#123;</span><br><span class="line">                <span class="keyword">if</span>(isAdmin)&#123;</span><br><span class="line">                    isAdmin = <span class="literal">false</span>;</span><br><span class="line">                    System.out.println(<span class="string">&quot;DaDaDa&quot;</span>);</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> &#123;</span><br><span class="line">                    System.out.println(<span class="string">&quot;WanNiBa&quot;</span>);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span>&#123;</span><br><span class="line">                <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;addLine&quot;</span>))&#123;</span><br><span class="line">                    <span class="keyword">if</span>(isAdmin)&#123;</span><br><span class="line">                        addLine(lineList, splited);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> &#123;</span><br><span class="line">                        System.out.println(<span class="string">&quot;Command does not exist&quot;</span>);</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;delLine&quot;</span>))&#123;</span><br><span class="line">                    <span class="keyword">if</span>(isAdmin)&#123;</span><br><span class="line">                        delLine(lineList, splited);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> &#123;</span><br><span class="line">                        System.out.println(<span class="string">&quot;Command does not exist&quot;</span>);</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;addStation&quot;</span>))&#123;</span><br><span class="line">                    <span class="keyword">if</span>(isAdmin)&#123;</span><br><span class="line">                        addStation(lineList, splited);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> &#123;</span><br><span class="line">                        System.out.println(<span class="string">&quot;Command does not exist&quot;</span>);</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;delStation&quot;</span>))&#123;</span><br><span class="line">                    <span class="keyword">if</span>(isAdmin)&#123;</span><br><span class="line">                        delStation(lineList, splited);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> &#123;</span><br><span class="line">                        System.out.println(<span class="string">&quot;Command does not exist&quot;</span>);</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;lineInfo&quot;</span>))&#123;</span><br><span class="line">                    lineInfo(lineList, splited);</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;listLine&quot;</span>))&#123;</span><br><span class="line">                    <span class="keyword">if</span>(splited.length == <span class="number">1</span>)&#123;</span><br><span class="line">                        listLine(lineList);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span>&#123;</span><br><span class="line">                        System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">                        <span class="keyword">continue</span>;</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;addTrain&quot;</span>))&#123;</span><br><span class="line">                    <span class="keyword">if</span>(isAdmin)&#123;</span><br><span class="line">                        addTrain(lineList, trainList, splited);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> &#123;</span><br><span class="line">                        System.out.println(<span class="string">&quot;Command does not exist&quot;</span>);</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;delTrain&quot;</span>))&#123;</span><br><span class="line">                    <span class="keyword">if</span>(isAdmin)&#123;</span><br><span class="line">                        delTrain(lineList, trainList, splited);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> &#123;</span><br><span class="line">                        System.out.println(<span class="string">&quot;Command does not exist&quot;</span>);</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;checkTicket&quot;</span>))&#123;</span><br><span class="line">                    <span class="keyword">if</span>(user.getAdmin() == <span class="literal">false</span>) &#123;</span><br><span class="line">                        checkTicket(lineList, trainList, splited);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span>&#123;</span><br><span class="line">                        System.out.println(<span class="string">&quot;Command does not exist&quot;</span>);</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;listTrain&quot;</span>))&#123;</span><br><span class="line">                    listTrain(lineList, trainList, splited);</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;buyTicket&quot;</span>))&#123;</span><br><span class="line">                    buyTicket(user, lineList, trainList, splited, isLogin);</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;listOrder&quot;</span>))&#123;</span><br><span class="line">                    <span class="keyword">if</span>(splited.length == <span class="number">1</span>)&#123;</span><br><span class="line">                        listOrder(user, isLogin);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span>&#123;</span><br><span class="line">                        System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">                        <span class="keyword">continue</span>;</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;rechargeBalance&quot;</span>))&#123;</span><br><span class="line">                    <span class="keyword">if</span>(splited.length == <span class="number">2</span>)&#123;</span><br><span class="line">                        rechargeBalance(user, isLogin, Double.parseDouble(splited[<span class="number">1</span>]));</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span>&#123;</span><br><span class="line">                        System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">                        <span class="keyword">continue</span>;</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;checkBalance&quot;</span>))&#123;</span><br><span class="line">                    <span class="keyword">if</span>(splited.length == <span class="number">1</span>)&#123;</span><br><span class="line">                        checkBalance(user, isLogin);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span>&#123;</span><br><span class="line">                        System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">                        <span class="keyword">continue</span>;</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;cancelOrder&quot;</span>))&#123;</span><br><span class="line">                    cancelOrder(user, lineList, trainList, splited, isLogin);</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;payOrder&quot;</span>))&#123;</span><br><span class="line">                    payOrder(user, splited, isLogin);</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(splited[<span class="number">0</span>], <span class="string">&quot;importCert&quot;</span>))&#123;</span><br><span class="line">                    <span class="keyword">if</span>(isAdmin)&#123;</span><br><span class="line">                        certMsg = importCert(certMsg, userList, splited);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> &#123;</span><br><span class="line">                        System.out.println(<span class="string">&quot;Command does not exist&quot;</span>);</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> &#123;</span><br><span class="line">                    System.out.println(<span class="string">&quot;Command does not exist&quot;</span>);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> HashMap&lt;String, Boolean&gt; <span class="title function_">importCert</span><span class="params">(HashMap&lt;String, Boolean&gt; certMsg, Vector&lt;User&gt; userList, String[] args)</span> <span class="keyword">throws</span> IOException &#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length != <span class="number">2</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span> certMsg;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">try</span>&#123;</span><br><span class="line">            certMsg = Cert.read(certMsg, args[<span class="number">1</span>], userList);</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">catch</span> (IOException e)&#123;</span><br><span class="line">            <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>();</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="keyword">return</span> certMsg;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">payOrder</span><span class="params">(User user, String[] args, <span class="type">boolean</span> isLogin)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length != <span class="number">1</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(isLogin == <span class="literal">false</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Please login first&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        Vector&lt;Order&gt; orders = user.getOrders();</span><br><span class="line">        <span class="keyword">if</span>(orders.size() == <span class="number">0</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;No order&quot;</span>);</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="type">int</span> discountNum;</span><br><span class="line">        <span class="keyword">if</span>(isStudent(user))&#123;</span><br><span class="line">            <span class="type">Student</span> <span class="variable">student</span> <span class="operator">=</span> (Student)user;</span><br><span class="line">            discountNum = student.getDiscountNum();</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="keyword">else</span> &#123;</span><br><span class="line">            discountNum = <span class="number">0</span> ;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">double</span> <span class="variable">sum</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line">        <span class="type">int</span> <span class="variable">orders_size</span> <span class="operator">=</span> orders.size()-<span class="number">1</span>;</span><br><span class="line">        <span class="keyword">for</span>(<span class="type">int</span> i=orders_size;i&gt;=<span class="number">0</span>;i--)&#123;</span><br><span class="line">            <span class="type">Order</span> <span class="variable">order</span> <span class="operator">=</span> orders.get(i);</span><br><span class="line">            <span class="keyword">if</span>(order.isPaid())&#123;</span><br><span class="line">                <span class="keyword">continue</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">if</span>(discountNum &gt;= order.getSeatNum())&#123;</span><br><span class="line">                sum += order.getSum()*<span class="number">0.05</span>;</span><br><span class="line">                discountNum -= order.getSeatNum();</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span>&#123;</span><br><span class="line">                <span class="type">double</span> <span class="variable">single</span> <span class="operator">=</span> order.getSingle();</span><br><span class="line"></span><br><span class="line">                sum += single*discountNum*<span class="number">0.05</span> + (order.getSeatNum()-discountNum)*single;</span><br><span class="line">                discountNum = <span class="number">0</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(sum&lt;=user.getBalance())&#123;</span><br><span class="line">            user.setOrders(orders);</span><br><span class="line">            <span class="type">double</span> <span class="variable">balance</span> <span class="operator">=</span> user.getBalance()-sum;</span><br><span class="line">            user.setBalance(balance);</span><br><span class="line">            <span class="keyword">for</span>(<span class="type">int</span> i=orders_size;i&gt;=<span class="number">0</span>;i--)&#123;</span><br><span class="line">                orders.get(i).setPaid(<span class="literal">true</span>);</span><br><span class="line">            &#125;</span><br><span class="line">            System.out.println(<span class="string">&quot;Payment success&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span>&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Balance does not enough&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">isStudent</span><span class="params">(User user)</span>&#123;</span><br><span class="line">        <span class="keyword">try</span> &#123;</span><br><span class="line">            <span class="type">Student</span> <span class="variable">student</span> <span class="operator">=</span> (Student) user;</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line">        &#125; <span class="keyword">catch</span> (Exception e) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">cancelOrder</span><span class="params">(User user, Vector&lt;Line&gt; lineList, Vector&lt;Train&gt; trainList, String[] args, <span class="type">boolean</span> isLogin)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length &lt;= <span class="number">5</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(isLogin == <span class="literal">false</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Please login first&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="type">String</span> <span class="variable">trainNum</span> <span class="operator">=</span> args[<span class="number">1</span>];</span><br><span class="line">        <span class="type">int</span> <span class="variable">trainIndex</span> <span class="operator">=</span> trainExist(trainList, trainNum);</span><br><span class="line">        <span class="keyword">if</span>( trainIndex == -<span class="number">1</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Train does not exist&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="type">Train</span> <span class="variable">train</span> <span class="operator">=</span> trainList.get(trainIndex);</span><br><span class="line">        Vector&lt;Integer&gt; ticket = train.getTicketNum();</span><br><span class="line"></span><br><span class="line">        Vector&lt;Order&gt; orders = user.getOrders();</span><br><span class="line">        <span class="type">int</span> <span class="variable">num</span> <span class="operator">=</span> Integer.parseInt(args[<span class="number">5</span>]);</span><br><span class="line">        <span class="type">int</span> <span class="variable">sum</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line">        <span class="type">int</span> <span class="variable">orders_size</span> <span class="operator">=</span> orders.size()-<span class="number">1</span>;</span><br><span class="line">        <span class="keyword">for</span>(<span class="type">int</span> i=orders_size;i&gt;=<span class="number">0</span>;i--)&#123;</span><br><span class="line">            <span class="type">Order</span> <span class="variable">order</span> <span class="operator">=</span> orders.get(i);</span><br><span class="line">            <span class="keyword">if</span>(order.isPaid())&#123;</span><br><span class="line">                <span class="keyword">continue</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(args[<span class="number">1</span>], order.getTrainNum())&amp;&amp;Objects.equals(args[<span class="number">2</span>], order.getBegin())&amp;&amp;Objects.equals(args[<span class="number">3</span>], order.getDestination())&amp;&amp;Objects.equals(args[<span class="number">4</span>], order.getSeat()))&#123;</span><br><span class="line">                sum++;</span><br><span class="line">                <span class="keyword">if</span>(num&lt;order.getSeatNum())&#123;</span><br><span class="line">                    <span class="type">int</span> <span class="variable">seatNum</span> <span class="operator">=</span> order.getSeatNum() - num;</span><br><span class="line">                    order.setSeatNum(seatNum);</span><br><span class="line">                    order.setSum(seatNum * order.getSingle());</span><br><span class="line">                    user.setOrders(orders);</span><br><span class="line">                    System.out.println(<span class="string">&quot;Cancel success&quot;</span>);</span><br><span class="line">                    <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;CC&quot;</span>) || Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SC&quot;</span>) || Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;1A&quot;</span>))&#123;</span><br><span class="line">                        ticket.set(<span class="number">0</span>, ticket.get(<span class="number">0</span>) + num);</span><br><span class="line">                        train.setTicketNum(ticket);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;HC&quot;</span>) || (Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SB&quot;</span>) &amp;&amp; trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;0&#x27;</span>)|| Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;2A&quot;</span>))&#123;</span><br><span class="line">                        ticket.set(<span class="number">1</span>, ticket.get(<span class="number">1</span>) + num);</span><br><span class="line">                        train.setTicketNum(ticket);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;GG&quot;</span>) || (Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SB&quot;</span>) &amp;&amp; trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;G&#x27;</span>))&#123;</span><br><span class="line">                        ticket.set(<span class="number">2</span>, ticket.get(<span class="number">2</span>) + num);</span><br><span class="line">                        train.setTicketNum(ticket);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">return</span>;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(num == order.getSeatNum())&#123;</span><br><span class="line">                    orders.remove(i);</span><br><span class="line">                    user.setOrders(orders);</span><br><span class="line">                    System.out.println(<span class="string">&quot;Cancel success&quot;</span>);</span><br><span class="line">                    <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;CC&quot;</span>) || Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SC&quot;</span>) || Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;1A&quot;</span>))&#123;</span><br><span class="line">                        ticket.set(<span class="number">0</span>, ticket.get(<span class="number">0</span>) + num);</span><br><span class="line">                        train.setTicketNum(ticket);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;HC&quot;</span>) || (Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SB&quot;</span>) &amp;&amp; trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;0&#x27;</span>)|| Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;2A&quot;</span>))&#123;</span><br><span class="line">                        ticket.set(<span class="number">1</span>, ticket.get(<span class="number">1</span>) + num);</span><br><span class="line">                        train.setTicketNum(ticket);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;GG&quot;</span>) || (Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SB&quot;</span>) &amp;&amp; trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;G&#x27;</span>))&#123;</span><br><span class="line">                        ticket.set(<span class="number">2</span>, ticket.get(<span class="number">2</span>) + num);</span><br><span class="line">                        train.setTicketNum(ticket);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">return</span>;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span>&#123;</span><br><span class="line">                    num -= order.getSeatNum();</span><br><span class="line">                    <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;CC&quot;</span>) || Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SC&quot;</span>) || Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;1A&quot;</span>))&#123;</span><br><span class="line">                        ticket.set(<span class="number">0</span>, ticket.get(<span class="number">0</span>) + order.getSeatNum());</span><br><span class="line">                        train.setTicketNum(ticket);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;HC&quot;</span>) || (Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SB&quot;</span>) &amp;&amp; trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;0&#x27;</span>)|| Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;2A&quot;</span>))&#123;</span><br><span class="line">                        ticket.set(<span class="number">1</span>, ticket.get(<span class="number">1</span>) + order.getSeatNum());</span><br><span class="line">                        train.setTicketNum(ticket);</span><br><span class="line">                    &#125;</span><br><span class="line">                    <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;GG&quot;</span>) || (Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SB&quot;</span>) &amp;&amp; trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;G&#x27;</span>))&#123;</span><br><span class="line">                        ticket.set(<span class="number">2</span>, ticket.get(<span class="number">2</span>) + order.getSeatNum());</span><br><span class="line">                        train.setTicketNum(ticket);</span><br><span class="line">                    &#125;</span><br><span class="line"></span><br><span class="line">                    orders.remove(i);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(sum == <span class="number">0</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;No such Record&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span>&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;No enough orders&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">checkBalance</span><span class="params">(User user, <span class="type">boolean</span> isLogin)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span> (!isLogin) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Please login first&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        System.out.format(<span class="string">&quot;UserName:%s\nBalance:%.2f\n&quot;</span>, user.getName(), user.getBalance());</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">rechargeBalance</span><span class="params">(User user, <span class="type">boolean</span> isLogin, <span class="type">double</span> num)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span>(!isLogin)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Please login first&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(num&lt;<span class="number">0</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="type">double</span> <span class="variable">sum</span> <span class="operator">=</span> num + user.getBalance();</span><br><span class="line">        user.setBalance(sum);</span><br><span class="line">        System.out.println(<span class="string">&quot;Recharge Success&quot;</span>);</span><br><span class="line">        <span class="keyword">return</span>;</span><br><span class="line"></span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">listOrder</span><span class="params">(User user, <span class="type">boolean</span> isLogin)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span>(!isLogin)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Please login first&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        Vector&lt;Order&gt; orders = user.getOrders();</span><br><span class="line">        <span class="type">int</span> i;</span><br><span class="line">        <span class="keyword">if</span>(orders.isEmpty())&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;No order&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="keyword">for</span>(i=orders.size()-<span class="number">1</span>;i&gt;=<span class="number">0</span>;i--)&#123;</span><br><span class="line">            <span class="type">Order</span> <span class="variable">order</span> <span class="operator">=</span> orders.get(i);</span><br><span class="line">            System.out.format(<span class="string">&quot;[%s: %s-&gt;%s] seat:%s num:%d price:%.2f paid:%c\n&quot;</span>,order.getTrainNum(),order.getBegin(),order.getDestination(),order.getSeat(),order.getSeatNum(),order.getSum(),(order.isPaid()?<span class="string">&#x27;T&#x27;</span>:<span class="string">&#x27;F&#x27;</span>));</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">buyTicket</span><span class="params">(User user, Vector&lt;Line&gt; lineList, Vector&lt;Train&gt; trainList, String[] args, <span class="type">boolean</span> isLogin)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length &lt;= <span class="number">5</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(isLogin == <span class="literal">false</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Please login first&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">String</span> <span class="variable">trainNum</span> <span class="operator">=</span> args[<span class="number">1</span>];</span><br><span class="line">        <span class="type">int</span> <span class="variable">trainIndex</span> <span class="operator">=</span> trainExist(trainList, trainNum);</span><br><span class="line">        <span class="keyword">if</span>( trainIndex == -<span class="number">1</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Train does not exist&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="type">Train</span> <span class="variable">train</span> <span class="operator">=</span> trainList.get(trainIndex);</span><br><span class="line">        String lineName= train.getLine();</span><br><span class="line">        <span class="type">int</span> <span class="variable">lineIndex</span> <span class="operator">=</span> findLine(lineList, lineName);</span><br><span class="line">        <span class="type">Line</span> <span class="variable">line</span> <span class="operator">=</span> lineList.get(lineIndex);</span><br><span class="line">        <span class="type">int</span> <span class="variable">beginIndex</span> <span class="operator">=</span> stationExist(line, args[<span class="number">2</span>]);</span><br><span class="line">        <span class="type">int</span> <span class="variable">destIndex</span> <span class="operator">=</span> stationExist(line, args[<span class="number">3</span>]);</span><br><span class="line">        <span class="keyword">if</span>(beginIndex == -<span class="number">1</span> || destIndex == -<span class="number">1</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Station does not exist&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        Vector&lt;Integer&gt; mileage = line.getStationMileage();</span><br><span class="line">        <span class="type">int</span> <span class="variable">distance</span> <span class="operator">=</span> abs(mileage.get(destIndex) - mileage.get(beginIndex));</span><br><span class="line"></span><br><span class="line">        Vector&lt;Integer&gt; ticket = train.getTicketNum();</span><br><span class="line">        Vector&lt;Double&gt; price = train.getTicketPrice();</span><br><span class="line"></span><br><span class="line">        <span class="type">int</span> <span class="variable">rest</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line">        <span class="type">double</span> <span class="variable">prices</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line">        <span class="type">int</span> <span class="variable">num</span> <span class="operator">=</span> <span class="number">100000</span>;</span><br><span class="line">        <span class="keyword">if</span>(isInt(args[<span class="number">5</span>])) &#123;</span><br><span class="line">            num = Integer.valueOf(args[<span class="number">5</span>]);</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;0&#x27;</span>)&#123;</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;CC&quot;</span>))&#123;</span><br><span class="line">                rest = ticket.get(<span class="number">0</span>);</span><br><span class="line">                prices = price.get(<span class="number">0</span>);</span><br><span class="line">                <span class="keyword">if</span>(rest&gt;num)&#123;</span><br><span class="line">                    ticket.set(<span class="number">0</span>, rest - num);</span><br><span class="line">                    train.setTicketNum(ticket);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SB&quot;</span>))&#123;</span><br><span class="line">                rest = ticket.get(<span class="number">1</span>);</span><br><span class="line">                prices = price.get(<span class="number">1</span>);</span><br><span class="line">                <span class="keyword">if</span>(rest&gt;num)&#123;</span><br><span class="line">                    ticket.set(<span class="number">1</span>, rest - num);</span><br><span class="line">                    train.setTicketNum(ticket);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;GG&quot;</span>))&#123;</span><br><span class="line">                rest = ticket.get(<span class="number">2</span>);</span><br><span class="line">                prices = price.get(<span class="number">2</span>);</span><br><span class="line">                <span class="keyword">if</span>(rest&gt;num)&#123;</span><br><span class="line">                    ticket.set(<span class="number">2</span>, rest - num);</span><br><span class="line">                    train.setTicketNum(ticket);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span>&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Seat does not match&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span> <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;G&#x27;</span>)&#123;</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SC&quot;</span>))&#123;</span><br><span class="line">                rest = ticket.get(<span class="number">0</span>);</span><br><span class="line">                prices = price.get(<span class="number">0</span>);</span><br><span class="line">                <span class="keyword">if</span>(rest&gt;num)&#123;</span><br><span class="line">                    ticket.set(<span class="number">0</span>, rest - num);</span><br><span class="line">                    train.setTicketNum(ticket);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;HC&quot;</span>))&#123;</span><br><span class="line">                rest = ticket.get(<span class="number">1</span>);</span><br><span class="line">                prices = price.get(<span class="number">1</span>);</span><br><span class="line">                <span class="keyword">if</span>(rest&gt;num)&#123;</span><br><span class="line">                    ticket.set(<span class="number">1</span>, rest - num);</span><br><span class="line">                    train.setTicketNum(ticket);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SB&quot;</span>))&#123;</span><br><span class="line">                rest = ticket.get(<span class="number">2</span>);</span><br><span class="line">                prices = price.get(<span class="number">2</span>);</span><br><span class="line">                <span class="keyword">if</span>(rest&gt;num)&#123;</span><br><span class="line">                    ticket.set(<span class="number">2</span>, rest - num);</span><br><span class="line">                    train.setTicketNum(ticket);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span>&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Seat does not match&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span> <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;K&#x27;</span>)&#123;</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;1A&quot;</span>))&#123;</span><br><span class="line"></span><br><span class="line">                <span class="keyword">if</span> (user.isCert())&#123;</span><br><span class="line">                    System.out.println(<span class="string">&quot;Cert illegal&quot;</span>);</span><br><span class="line">                    <span class="keyword">return</span>;</span><br><span class="line">                &#125;</span><br><span class="line">                rest = ticket.get(<span class="number">0</span>);</span><br><span class="line">                prices = price.get(<span class="number">0</span>);</span><br><span class="line">                <span class="keyword">if</span>(rest&gt;num)&#123;</span><br><span class="line">                    ticket.set(<span class="number">0</span>, rest - num);</span><br><span class="line">                    train.setTicketNum(ticket);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;2A&quot;</span>))&#123;</span><br><span class="line">                <span class="keyword">if</span> (user.isCert())&#123;</span><br><span class="line">                    System.out.println(<span class="string">&quot;Cert illegal&quot;</span>);</span><br><span class="line">                    <span class="keyword">return</span>;</span><br><span class="line">                &#125;</span><br><span class="line">                rest = ticket.get(<span class="number">1</span>);</span><br><span class="line">                prices = price.get(<span class="number">1</span>);</span><br><span class="line">                <span class="keyword">if</span>(rest&gt;num)&#123;</span><br><span class="line">                    ticket.set(<span class="number">1</span>, rest - num);</span><br><span class="line">                    train.setTicketNum(ticket);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span>&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Seat does not match&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span>(!isInt(args[<span class="number">5</span>]) || Integer.valueOf(args[<span class="number">5</span>])&lt;=<span class="number">0</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Ticket number illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span>&#123;</span><br><span class="line"></span><br><span class="line">            <span class="keyword">if</span>(num &gt; rest)&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Ticket does not enough&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        Vector&lt;Order&gt; orders= user.getOrders();</span><br><span class="line">        <span class="type">Order</span> <span class="variable">order</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Order</span>();</span><br><span class="line">        order.setTrainNum(args[<span class="number">1</span>]);</span><br><span class="line">        order.setBegin(args[<span class="number">2</span>]);</span><br><span class="line">        order.setDestination(args[<span class="number">3</span>]);</span><br><span class="line">        order.setSeat(args[<span class="number">4</span>]);</span><br><span class="line">        order.setSeatNum(num);</span><br><span class="line">        order.setSingle(prices*distance);</span><br><span class="line">        order.setSum(num*prices*distance);</span><br><span class="line">        orders.addElement(order);</span><br><span class="line">        user.setOrders(orders);</span><br><span class="line">        System.out.println(<span class="string">&quot;Thanks for your order&quot;</span>);</span><br><span class="line">        <span class="keyword">return</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">logout</span><span class="params">(String[] args, <span class="type">boolean</span> isLogin)</span>&#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length!=<span class="number">1</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(isLogin) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Logout success&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span>&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;No user has logged in&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">login</span><span class="params">(String[] args, <span class="type">boolean</span> isLogin,  Vector&lt;User&gt; userList)</span>&#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length!=<span class="number">3</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span> -<span class="number">1</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span> <span class="keyword">if</span>(isLogin == <span class="literal">true</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;You have logged in&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span> -<span class="number">1</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">String</span> <span class="variable">card</span> <span class="operator">=</span> args[<span class="number">1</span>];</span><br><span class="line">        <span class="type">String</span> <span class="variable">name</span> <span class="operator">=</span> args[<span class="number">2</span>];</span><br><span class="line">        <span class="type">boolean</span> <span class="variable">isExist</span> <span class="operator">=</span> <span class="literal">false</span>;</span><br><span class="line">        <span class="type">int</span> i;</span><br><span class="line">        <span class="keyword">for</span>(i=<span class="number">0</span>;i&lt; userList.size();i++)&#123;</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(userList.get(i).getAadhaar(), card))&#123;</span><br><span class="line">                isExist = <span class="literal">true</span>;</span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(!isExist)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;User does not exist&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span> -<span class="number">1</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(!Objects.equals(userList.get(i).getName(), name))&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Wrong name&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span> -<span class="number">1</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        System.out.println(<span class="string">&quot;Login success&quot;</span>);</span><br><span class="line">        <span class="keyword">return</span> i;</span><br><span class="line"></span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">listTrain</span><span class="params">(Vector&lt;Line&gt; lineList, Vector&lt;Train&gt; trainList, String[] args)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length == <span class="number">1</span>) &#123;</span><br><span class="line">            <span class="type">int</span> i;</span><br><span class="line">            <span class="type">int</span> <span class="variable">trainInLine</span> <span class="operator">=</span> <span class="number">1</span>;</span><br><span class="line"></span><br><span class="line">            <span class="keyword">for</span>(i=<span class="number">0</span>;i&lt;trainList.size();i++)&#123;</span><br><span class="line">                <span class="type">Train</span> <span class="variable">train</span> <span class="operator">=</span> trainList.get(i);</span><br><span class="line">                Vector&lt;Double&gt; price = train.getTicketPrice();</span><br><span class="line">                Vector&lt;Integer&gt; ticket = train.getTicketNum();</span><br><span class="line">                <span class="type">String</span> <span class="variable">trainNum</span> <span class="operator">=</span> train.getTrainNum();</span><br><span class="line">                <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;0&#x27;</span>)&#123;</span><br><span class="line">                    System.out.format(<span class="string">&quot;[%d] %s: %s [CC]%.2f:%d [SB]%.2f:%d [GG]%.2f:%d\n&quot;</span>,trainInLine, trainNum, train.getLine(), price.get(<span class="number">0</span>), ticket.get(<span class="number">0</span>), price.get(<span class="number">1</span>), ticket.get(<span class="number">1</span>), price.get(<span class="number">2</span>), ticket.get(<span class="number">2</span>));</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;G&#x27;</span>)&#123;</span><br><span class="line">                    System.out.format(<span class="string">&quot;[%d] %s: %s [SC]%.2f:%d [HC]%.2f:%d [SB]%.2f:%d\n&quot;</span>,trainInLine, trainNum, train.getLine(), price.get(<span class="number">0</span>), ticket.get(<span class="number">0</span>), price.get(<span class="number">1</span>), ticket.get(<span class="number">1</span>), price.get(<span class="number">2</span>), ticket.get(<span class="number">2</span>));</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;K&#x27;</span>)&#123;</span><br><span class="line">                    System.out.format(<span class="string">&quot;[%d] %s: %s [1A]%.2f:%d [2A]%.2f:%d\n&quot;</span>,trainInLine, trainNum, train.getLine(), price.get(<span class="number">0</span>), ticket.get(<span class="number">0</span>), price.get(<span class="number">1</span>), ticket.get(<span class="number">1</span>));</span><br><span class="line">                &#125;</span><br><span class="line">                trainInLine++;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">if</span>(trainInLine == <span class="number">1</span>) &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;No Trains&quot;</span>);</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">String</span> <span class="variable">lineNum</span> <span class="operator">=</span> args[<span class="number">1</span>];</span><br><span class="line">        <span class="keyword">if</span>(lineExist(lineList, lineNum) == -<span class="number">1</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Line does not exist&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">int</span> i;</span><br><span class="line"></span><br><span class="line">        <span class="type">int</span> <span class="variable">trainInLine</span> <span class="operator">=</span> <span class="number">1</span>;</span><br><span class="line">        <span class="keyword">for</span>(i=<span class="number">0</span>;i&lt;trainList.size();i++)&#123;</span><br><span class="line">            <span class="type">Train</span> <span class="variable">train</span> <span class="operator">=</span> trainList.get(i);</span><br><span class="line">            Vector&lt;Double&gt; price = train.getTicketPrice();</span><br><span class="line">            Vector&lt;Integer&gt; ticket = train.getTicketNum();</span><br><span class="line">            <span class="type">String</span> <span class="variable">trainNum</span> <span class="operator">=</span> train.getTrainNum();</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(train.getLine(), lineNum))&#123;</span><br><span class="line">                <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;0&#x27;</span>)&#123;</span><br><span class="line">                    System.out.format(<span class="string">&quot;[%d] %s: %s [CC]%.2f:%d [SB]%.2f:%d [GG]%.2f:%d\n&quot;</span>,trainInLine, trainNum, lineNum, price.get(<span class="number">0</span>), ticket.get(<span class="number">0</span>), price.get(<span class="number">1</span>), ticket.get(<span class="number">1</span>), price.get(<span class="number">2</span>), ticket.get(<span class="number">2</span>));</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;G&#x27;</span>)&#123;</span><br><span class="line">                    System.out.format(<span class="string">&quot;[%d] %s: %s [SC]%.2f:%d [HC]%.2f:%d [SB]%.2f:%d\n&quot;</span>,trainInLine, trainNum, lineNum, price.get(<span class="number">0</span>), ticket.get(<span class="number">0</span>), price.get(<span class="number">1</span>), ticket.get(<span class="number">1</span>), price.get(<span class="number">2</span>), ticket.get(<span class="number">2</span>));</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span> <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;K&#x27;</span>)&#123;</span><br><span class="line">                    System.out.format(<span class="string">&quot;[%d] %s: %s [1A]%.2f:%d [2A]%.2f:%d\n&quot;</span>,trainInLine, trainNum, lineNum, price.get(<span class="number">0</span>), ticket.get(<span class="number">0</span>), price.get(<span class="number">1</span>), ticket.get(<span class="number">1</span>));</span><br><span class="line">                &#125;</span><br><span class="line">                trainInLine++;</span><br><span class="line">            &#125;</span><br><span class="line"></span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(trainInLine == <span class="number">1</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;No Trains&quot;</span>);</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">lineExist</span><span class="params">(Vector&lt;Line&gt; lineList, String lineNum)</span>&#123;</span><br><span class="line">        <span class="type">int</span> i;</span><br><span class="line">        <span class="keyword">for</span>(i=<span class="number">0</span>;i&lt;lineList.size();i++)&#123;</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(lineList.get(i).getLine(), lineNum))&#123;</span><br><span class="line">                <span class="keyword">return</span> i;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span> -<span class="number">1</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">checkTicket</span><span class="params">(Vector&lt;Line&gt; lineList, Vector&lt;Train&gt; trainList, String[] args)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length &lt; <span class="number">5</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">String</span> <span class="variable">trainNum</span> <span class="operator">=</span> args[<span class="number">1</span>];</span><br><span class="line">        <span class="keyword">if</span>(trainNum.length() &lt; <span class="number">5</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Train serial illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(!(isNum(trainNum.charAt(<span class="number">1</span>)) &amp;&amp; isNum(trainNum.charAt(<span class="number">2</span>)) &amp;&amp; isNum(trainNum.charAt(<span class="number">3</span>)) &amp;&amp; isNum(trainNum.charAt(<span class="number">4</span>))))&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Train serial illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">int</span> <span class="variable">trainIndex</span> <span class="operator">=</span> trainExist(trainList, trainNum);</span><br><span class="line">        <span class="keyword">if</span>( trainIndex == -<span class="number">1</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Train serial does not exist&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="type">Train</span> <span class="variable">train</span> <span class="operator">=</span> trainList.get(trainIndex);</span><br><span class="line">        String lineName= train.getLine();</span><br><span class="line">        <span class="type">int</span> <span class="variable">lineIndex</span> <span class="operator">=</span> findLine(lineList, lineName);</span><br><span class="line">        <span class="type">Line</span> <span class="variable">line</span> <span class="operator">=</span> lineList.get(lineIndex);</span><br><span class="line">        <span class="type">int</span> <span class="variable">beginIndex</span> <span class="operator">=</span> stationExist(line, args[<span class="number">2</span>]);</span><br><span class="line">        <span class="type">int</span> <span class="variable">destIndex</span> <span class="operator">=</span> stationExist(line, args[<span class="number">3</span>]);</span><br><span class="line">        <span class="keyword">if</span>(beginIndex == -<span class="number">1</span> || destIndex == -<span class="number">1</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Station does not exist&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        Vector&lt;Integer&gt; mileage = line.getStationMileage();</span><br><span class="line">        <span class="type">int</span> <span class="variable">distance</span> <span class="operator">=</span> abs(mileage.get(destIndex) - mileage.get(beginIndex));</span><br><span class="line"></span><br><span class="line">        Vector&lt;Integer&gt; ticket = train.getTicketNum();</span><br><span class="line">        Vector&lt;Double&gt; price = train.getTicketPrice();</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;0&#x27;</span>)&#123;</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;CC&quot;</span>))&#123;</span><br><span class="line">                System.out.format(<span class="string">&quot;[%s: %s-&gt;%s] seat:CC remain:%d distance:%d price:%.2f\n&quot;</span>,trainNum, args[<span class="number">2</span>], args[<span class="number">3</span>], ticket.get(<span class="number">0</span>), distance, distance*price.get(<span class="number">0</span>));</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SB&quot;</span>))&#123;</span><br><span class="line">                System.out.format(<span class="string">&quot;[%s: %s-&gt;%s] seat:SB remain:%d distance:%d price:%.2f\n&quot;</span>,trainNum, args[<span class="number">2</span>], args[<span class="number">3</span>], ticket.get(<span class="number">1</span>), distance, distance*price.get(<span class="number">1</span>));</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;GG&quot;</span>))&#123;</span><br><span class="line">                System.out.format(<span class="string">&quot;[%s: %s-&gt;%s] seat:GG remain:%d distance:%d price:%.2f\n&quot;</span>,trainNum, args[<span class="number">2</span>], args[<span class="number">3</span>], ticket.get(<span class="number">2</span>), distance, distance*price.get(<span class="number">2</span>));</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span>&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Seat does not match&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span> <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;G&#x27;</span>)&#123;</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SC&quot;</span>))&#123;</span><br><span class="line">                System.out.format(<span class="string">&quot;[%s: %s-&gt;%s] seat:SC remain:%d distance:%d price:%.2f\n&quot;</span>,trainNum, args[<span class="number">2</span>], args[<span class="number">3</span>], ticket.get(<span class="number">0</span>), distance, distance*price.get(<span class="number">0</span>));</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;HC&quot;</span>))&#123;</span><br><span class="line">                System.out.format(<span class="string">&quot;[%s: %s-&gt;%s] seat:HC remain:%d distance:%d price:%.2f\n&quot;</span>,trainNum, args[<span class="number">2</span>], args[<span class="number">3</span>], ticket.get(<span class="number">1</span>), distance, distance*price.get(<span class="number">1</span>));</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;SB&quot;</span>))&#123;</span><br><span class="line">                System.out.format(<span class="string">&quot;[%s: %s-&gt;%s] seat:SB remain:%d distance:%d price:%.2f\n&quot;</span>,trainNum, args[<span class="number">2</span>], args[<span class="number">3</span>], ticket.get(<span class="number">2</span>), distance, distance*price.get(<span class="number">2</span>));</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span>&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Seat does not match&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span> <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;K&#x27;</span>)&#123;</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;1A&quot;</span>))&#123;</span><br><span class="line">                System.out.format(<span class="string">&quot;[%s: %s-&gt;%s] seat:1A remain:%d distance:%d price:%.2f\n&quot;</span>,trainNum, args[<span class="number">2</span>], args[<span class="number">3</span>], ticket.get(<span class="number">0</span>), distance, distance*price.get(<span class="number">0</span>));</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(Objects.equals(args[<span class="number">4</span>], <span class="string">&quot;2A&quot;</span>))&#123;</span><br><span class="line">                System.out.format(<span class="string">&quot;[%s: %s-&gt;%s] seat:2A remain:%d distance:%d price:%.2f\n&quot;</span>,trainNum, args[<span class="number">2</span>], args[<span class="number">3</span>], ticket.get(<span class="number">1</span>), distance, distance*price.get(<span class="number">1</span>));</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span>&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Seat does not match&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">delTrain</span><span class="params">(Vector&lt;Line&gt; lineList, Vector&lt;Train&gt; trainList, String[] args)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length &lt; <span class="number">2</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">String</span> <span class="variable">trainNum</span> <span class="operator">=</span> args[<span class="number">1</span>];</span><br><span class="line">        <span class="type">int</span> <span class="variable">exist</span> <span class="operator">=</span> trainExist(trainList, trainNum);</span><br><span class="line">        <span class="keyword">if</span>(exist== -<span class="number">1</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Train does not exist&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span>&#123;</span><br><span class="line">            <span class="type">Train</span> <span class="variable">train</span> <span class="operator">=</span> trainList.get(exist);</span><br><span class="line">            <span class="type">String</span> <span class="variable">lineNum</span> <span class="operator">=</span> train.getLine();</span><br><span class="line">            <span class="type">int</span> <span class="variable">lineIndex</span> <span class="operator">=</span> lineExist(lineList, lineNum);</span><br><span class="line">            <span class="type">Line</span> <span class="variable">line</span> <span class="operator">=</span> lineList.get(lineIndex);</span><br><span class="line">            <span class="type">int</span> <span class="variable">used</span> <span class="operator">=</span> line.getUsedCapacity();</span><br><span class="line">            used--;</span><br><span class="line">            line.setUsedCapacity(used);</span><br><span class="line">            trainList.remove(exist);</span><br><span class="line"></span><br><span class="line">            System.out.println(<span class="string">&quot;Del Train Success&quot;</span>);</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">checkTrainSerial</span><span class="params">(String trainNum, Train train, <span class="type">int</span> num)</span>&#123;</span><br><span class="line">        <span class="type">int</span> <span class="variable">len</span> <span class="operator">=</span> trainNum.length();</span><br><span class="line">        <span class="keyword">if</span>(len!=<span class="number">5</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Train serial illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(!(isNum(trainNum.charAt(<span class="number">1</span>)) &amp;&amp; isNum(trainNum.charAt(<span class="number">2</span>)) &amp;&amp; isNum(trainNum.charAt(<span class="number">3</span>)) &amp;&amp; isNum(trainNum.charAt(<span class="number">4</span>))))&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Train serial illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span>(num == <span class="number">7</span>) &#123;</span><br><span class="line">            <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;K&#x27;</span>)&#123;</span><br><span class="line">                train.setTrainType(<span class="string">&quot;Koya&quot;</span>);</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;0&#x27;</span>||trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;G&#x27;</span>)&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span>&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Train serial illegal&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span> <span class="keyword">if</span> (num == <span class="number">9</span>) &#123;</span><br><span class="line">            <span class="keyword">if</span> (trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;0&#x27;</span>) &#123;</span><br><span class="line">                train.setTrainType(<span class="string">&quot;Normal&quot;</span>);</span><br><span class="line">            &#125; <span class="keyword">else</span> <span class="keyword">if</span> (trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;G&#x27;</span>) &#123;</span><br><span class="line">                train.setTrainType(<span class="string">&quot;Gatimaan&quot;</span>);</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>) == <span class="string">&#x27;K&#x27;</span>)&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">            &#125;<span class="keyword">else</span> &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Train serial illegal&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span> <span class="number">1</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">addTrain</span><span class="params">(Vector&lt;Line&gt; lineList, Vector&lt;Train&gt; trainList, String[] args)</span> &#123;</span><br><span class="line">        <span class="type">int</span> <span class="variable">num</span> <span class="operator">=</span> args.length;</span><br><span class="line">        <span class="keyword">if</span>(num!=<span class="number">7</span> &amp;&amp; num!= <span class="number">9</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">String</span> <span class="variable">trainNum</span> <span class="operator">=</span> args[<span class="number">1</span>];</span><br><span class="line"></span><br><span class="line">        <span class="type">Train</span> <span class="variable">train</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Train</span>();</span><br><span class="line">        <span class="keyword">if</span>(checkTrainSerial(trainNum, train, num) == <span class="number">0</span>)&#123;</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span>(trainExist(trainList, trainNum) != -<span class="number">1</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Train serial duplicate&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        train.setTrainNum(trainNum);</span><br><span class="line"></span><br><span class="line">        <span class="type">String</span> <span class="variable">lineName</span> <span class="operator">=</span> args[<span class="number">2</span>];</span><br><span class="line">        <span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> findLine(lineList, lineName);</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span>(i == -<span class="number">1</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Line illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        train.setLine(lineName);</span><br><span class="line"></span><br><span class="line">        <span class="type">Line</span> <span class="variable">line</span> <span class="operator">=</span> lineList.get(i);</span><br><span class="line">        <span class="type">int</span> <span class="variable">used</span> <span class="operator">=</span> line.getUsedCapacity();</span><br><span class="line">        <span class="type">int</span> <span class="variable">capacity</span> <span class="operator">=</span> line.getCapacity();</span><br><span class="line">        <span class="keyword">if</span>(used&gt;=capacity)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Line illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        Vector&lt;Double&gt; ticketPrice = train.getTicketPrice();</span><br><span class="line">        <span class="keyword">if</span>(!(isDouble(args[<span class="number">3</span>]) &amp;&amp; isDouble(args[<span class="number">5</span>])))&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Price illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(Double.valueOf(args[<span class="number">3</span>])&lt;<span class="number">0</span> || Double.valueOf(args[<span class="number">5</span>])&lt;<span class="number">0</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Price illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        ticketPrice.addElement(Double.valueOf(args[<span class="number">3</span>]));</span><br><span class="line">        ticketPrice.addElement(Double.valueOf(args[<span class="number">5</span>]));</span><br><span class="line">        train.setTicketPrice(ticketPrice);</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span>(num == <span class="number">9</span>) &#123;</span><br><span class="line">            <span class="keyword">if</span> (!isDouble(args[<span class="number">7</span>])) &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Price illegal&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">if</span> (Double.valueOf(args[<span class="number">7</span>]) &lt; <span class="number">0</span>) &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Price illegal&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span>;</span><br><span class="line">            &#125;</span><br><span class="line"></span><br><span class="line">            ticketPrice = train.getTicketPrice();</span><br><span class="line">            ticketPrice.addElement(Double.valueOf(args[<span class="number">7</span>]));</span><br><span class="line">            train.setTicketPrice(ticketPrice);</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span>(!(isInt(args[<span class="number">4</span>]) &amp;&amp; isInt(args[<span class="number">6</span>])))&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Ticket num illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        Vector&lt;Integer&gt; ticketNum = train.getTicketNum();</span><br><span class="line">        <span class="keyword">if</span>(Integer.valueOf(args[<span class="number">4</span>])&lt;<span class="number">0</span> || Integer.valueOf(args[<span class="number">6</span>])&lt;<span class="number">0</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Ticket num illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        ticketNum.addElement(Integer.valueOf(args[<span class="number">4</span>]));</span><br><span class="line">        ticketNum.addElement(Integer.valueOf(args[<span class="number">6</span>]));</span><br><span class="line">        train.setTicketNum(ticketNum);</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span> (num == <span class="number">9</span>)&#123;</span><br><span class="line">            <span class="keyword">if</span>(!isInt(args[<span class="number">8</span>]))&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Ticket num illegal&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">if</span>(Integer.valueOf(args[<span class="number">8</span>])&lt;<span class="number">0</span>)&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Ticket num illegal&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            ticketNum = train.getTicketNum();</span><br><span class="line">            ticketNum.addElement(Integer.valueOf(args[<span class="number">8</span>]));</span><br><span class="line">            train.setTicketNum(ticketNum);</span><br><span class="line">        &#125;</span><br><span class="line">        used++;</span><br><span class="line">        line.setUsedCapacity(used);</span><br><span class="line">        <span class="comment">// 按列车号添加</span></span><br><span class="line">        <span class="keyword">if</span>(trainList.isEmpty())&#123;</span><br><span class="line">            trainList.addElement(train);</span><br><span class="line">            System.out.println(<span class="string">&quot;Add Train Success&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">for</span>(i=<span class="number">0</span>;i&lt;trainList.size();i++)&#123;</span><br><span class="line">            <span class="type">Train</span> <span class="variable">train2</span> <span class="operator">=</span> trainList.get(i);</span><br><span class="line">            <span class="type">String</span> <span class="variable">train2Num</span> <span class="operator">=</span> train2.getTrainNum();</span><br><span class="line">            <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>)&gt;train2Num.charAt(<span class="number">0</span>))&#123;</span><br><span class="line">                trainList.add(i, train);</span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(trainNum.charAt(<span class="number">0</span>)&lt;train2Num.charAt(<span class="number">0</span>))&#123;</span><br><span class="line">                <span class="keyword">continue</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(trainNum.compareTo(train2Num)&lt;<span class="number">0</span>)&#123;</span><br><span class="line">                trainList.add(i, train);</span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(i==trainList.size())&#123;</span><br><span class="line">            trainList.add(i, train);</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        System.out.println(<span class="string">&quot;Add Train Success&quot;</span>);</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">trainExist</span><span class="params">(Vector&lt;Train&gt; trainList, String trainNum)</span> &#123;</span><br><span class="line">        <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i &lt; trainList.size(); i++) &#123;</span><br><span class="line">            <span class="type">Train</span> <span class="variable">train</span> <span class="operator">=</span> trainList.get(i);</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(train.getTrainNum(), trainNum))&#123;</span><br><span class="line">                <span class="keyword">return</span> i;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span> -<span class="number">1</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">isNum</span><span class="params">(<span class="type">char</span> charAt)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span>(charAt&gt;=<span class="string">&#x27;0&#x27;</span>&amp;&amp;charAt&lt;=<span class="string">&#x27;9&#x27;</span>) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line">        &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">listLine</span><span class="params">(Vector&lt;Line&gt; lineList)</span>&#123;</span><br><span class="line">        <span class="type">int</span> i;</span><br><span class="line">        <span class="keyword">if</span>(lineList.isEmpty())&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;No Lines&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">for</span>(i=<span class="number">0</span>;i&lt;lineList.size();i++)&#123;</span><br><span class="line">            <span class="type">Line</span> <span class="variable">line</span> <span class="operator">=</span> lineList.get(i);</span><br><span class="line">            line.toString(i+<span class="number">1</span>);</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">lineInfo</span><span class="params">(Vector&lt;Line&gt; lineList, String[] args)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length &lt; <span class="number">2</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">int</span> <span class="variable">index</span> <span class="operator">=</span> findLine(lineList, args[<span class="number">1</span>]);</span><br><span class="line">        <span class="keyword">if</span>( index == -<span class="number">1</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Line does not exist&quot;</span>);</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span>&#123;</span><br><span class="line">            lineList.get(index).toString();</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">addStation</span><span class="params">(Vector&lt;Line&gt; lineList, String[] args)</span> &#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length &lt; <span class="number">4</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(!isInt(args[<span class="number">3</span>]))&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(Integer.valueOf(args[<span class="number">3</span>])&lt;<span class="number">0</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> findLine(lineList, args[<span class="number">1</span>]);</span><br><span class="line">        <span class="type">int</span> <span class="variable">len</span> <span class="operator">=</span> args.length;</span><br><span class="line">        <span class="keyword">if</span>(i == -<span class="number">1</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Line does not exist&quot;</span>);</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span>&#123;</span><br><span class="line">            <span class="type">Line</span> <span class="variable">line</span> <span class="operator">=</span> lineList.get(i);</span><br><span class="line">            <span class="keyword">if</span>(stationExist(line, args[<span class="number">2</span>]) != -<span class="number">1</span>)&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Station duplicate&quot;</span>);</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span>&#123;</span><br><span class="line">                <span class="type">int</span> <span class="variable">position</span> <span class="operator">=</span> stationPosition(line, Integer.parseInt(args[<span class="number">3</span>]));</span><br><span class="line">                line.station.add(position, args[<span class="number">2</span>]);</span><br><span class="line">                line.stationMileage.add(position, Integer.valueOf(args[<span class="number">3</span>]));</span><br><span class="line">                System.out.println(<span class="string">&quot;Add Station success&quot;</span>);</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">stationPosition</span><span class="params">(Line line, <span class="type">int</span> mileage)</span> &#123;</span><br><span class="line">        Vector&lt;Integer&gt; stationMileage = line.getStationMileage();</span><br><span class="line">        <span class="type">int</span> i;</span><br><span class="line">        <span class="keyword">for</span>(i=<span class="number">0</span>;i&lt;stationMileage.size();i++)&#123;</span><br><span class="line">            <span class="keyword">if</span>(mileage&lt;stationMileage.get(i))&#123;</span><br><span class="line">                <span class="keyword">return</span> i;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span> stationMileage.size();</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">delStation</span><span class="params">(Vector&lt;Line&gt; lineList, String[] args)</span>&#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length &lt; <span class="number">3</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> findLine(lineList, args[<span class="number">1</span>]);</span><br><span class="line">        <span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> stationExist(lineList.get(i), args[<span class="number">2</span>]);</span><br><span class="line">        <span class="keyword">if</span>( j != -<span class="number">1</span>)&#123;</span><br><span class="line">            <span class="type">Line</span> <span class="variable">line</span> <span class="operator">=</span> lineList.get(i);</span><br><span class="line">            line.getStation().remove(j);</span><br><span class="line">            line.getStationMileage().remove(j);</span><br><span class="line">            System.out.println(<span class="string">&quot;Delete Station success&quot;</span>);</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span>&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Station does not exist&quot;</span>);</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">delLine</span><span class="params">(Vector&lt;Line&gt; lineList, String[] args)</span>&#123;</span><br><span class="line">        <span class="keyword">if</span>(args.length &lt; <span class="number">2</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i &lt; lineList.size(); i++) &#123;</span><br><span class="line">            <span class="type">Line</span> <span class="variable">line</span> <span class="operator">=</span> lineList.get(i);</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(line.getLine(), args[<span class="number">1</span>]))&#123;</span><br><span class="line">                lineList.remove(i);</span><br><span class="line">                System.out.println(<span class="string">&quot;Del Line success&quot;</span>);</span><br><span class="line">                <span class="keyword">return</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        System.out.println(<span class="string">&quot;Line does not exist&quot;</span>);</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">addLine</span><span class="params">(Vector&lt;Line&gt; lineList, String[] args)</span>&#123;</span><br><span class="line">        <span class="type">int</span> <span class="variable">num</span> <span class="operator">=</span> (args.length - <span class="number">3</span>) / <span class="number">2</span>;</span><br><span class="line">        <span class="keyword">if</span>(args.length % <span class="number">2</span>==<span class="number">0</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(args.length &lt; <span class="number">3</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(lineList.isEmpty())&#123;</span><br><span class="line"></span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span> <span class="keyword">if</span>(findLine(lineList, args[<span class="number">1</span>]) != -<span class="number">1</span>)&#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Line already exists&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        <span class="keyword">if</span>(isInt(args[<span class="number">2</span>]) == <span class="literal">false</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(Integer.parseInt(args[<span class="number">2</span>]) &lt;= <span class="number">0</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Capacity illegal&quot;</span>);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="type">Line</span> <span class="variable">line</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Line</span>();</span><br><span class="line">        line.setLine(args[<span class="number">1</span>]);</span><br><span class="line">        line.setCapacity(Integer.parseInt(args[<span class="number">2</span>]));</span><br><span class="line">        <span class="type">int</span> i;</span><br><span class="line">        <span class="keyword">for</span>(i=<span class="number">1</span>; i&lt;=num; i++)&#123;</span><br><span class="line">            <span class="keyword">if</span>(isInt(args[<span class="number">2</span>*i+<span class="number">2</span>]) == <span class="literal">false</span>) &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> <span class="keyword">if</span>(stationExist(line, args[<span class="number">2</span>*i+<span class="number">1</span>]) != -<span class="number">1</span>)&#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Station duplicate&quot;</span>);</span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span> &#123;</span><br><span class="line">                <span class="type">int</span> j;</span><br><span class="line">                Vector&lt;Integer&gt; mileage = line.getStationMileage();</span><br><span class="line">                <span class="keyword">for</span>(j=<span class="number">0</span>;j&lt;mileage.size();j++)&#123;</span><br><span class="line">                    <span class="keyword">if</span>(Integer.parseInt(args[<span class="number">2</span>*i+<span class="number">2</span>])&lt;mileage.get(j))&#123;</span><br><span class="line">                        line.addStation(line, j, args[<span class="number">2</span>*i+<span class="number">1</span>], Integer.parseInt(args[<span class="number">2</span>*i+<span class="number">2</span>]));</span><br><span class="line">                        <span class="keyword">break</span>;</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">if</span>(j==mileage.size())&#123;</span><br><span class="line">                    line.addStation(line, j, args[<span class="number">2</span>*i+<span class="number">1</span>], Integer.parseInt(args[<span class="number">2</span>*i+<span class="number">2</span>]));</span><br><span class="line">                &#125;</span><br><span class="line"></span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span>(i == num+<span class="number">1</span>) &#123;</span><br><span class="line">            <span class="type">int</span> j;</span><br><span class="line">            <span class="type">String</span> <span class="variable">lineName</span> <span class="operator">=</span> line.getLine();</span><br><span class="line">            <span class="keyword">if</span>(lineList.isEmpty())&#123;</span><br><span class="line">                lineList.addElement(line);</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">else</span>&#123;</span><br><span class="line">                <span class="keyword">for</span>(j=<span class="number">0</span>;j&lt;lineList.size();j++)&#123;</span><br><span class="line">                    <span class="type">Line</span> <span class="variable">line2</span> <span class="operator">=</span> lineList.get(j);</span><br><span class="line">                    <span class="keyword">if</span>(lineName.compareTo(line2.getLine())&lt;<span class="number">0</span>)&#123;</span><br><span class="line">                        lineList.add(j, line);</span><br><span class="line">                        <span class="keyword">break</span>;</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">if</span>(j==lineList.size())&#123;</span><br><span class="line">                    lineList.add(j, line);</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line"></span><br><span class="line">            System.out.println(<span class="string">&quot;Add Line success&quot;</span>);</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">findLine</span><span class="params">(Vector&lt;Line&gt; lineList, String lineName)</span>&#123;</span><br><span class="line">        <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i &lt; lineList.size(); i++) &#123;</span><br><span class="line">            <span class="type">Line</span> <span class="variable">line</span> <span class="operator">=</span> lineList.get(i);</span><br><span class="line">            <span class="keyword">if</span>(Objects.equals(line.getLine(), lineName))&#123;</span><br><span class="line">                <span class="keyword">return</span> i;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span> -<span class="number">1</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">stationExist</span><span class="params">(Line line, String stationName)</span>&#123;</span><br><span class="line">        Vector&lt;String&gt; station = line.getStation();</span><br><span class="line">        <span class="keyword">return</span> station.indexOf(stationName);</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">isInt</span><span class="params">(String str)</span>&#123;</span><br><span class="line">        <span class="keyword">try</span> &#123;</span><br><span class="line">            <span class="type">int</span> num=Integer.valueOf(str);</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line">        &#125; <span class="keyword">catch</span> (Exception e) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">isDouble</span><span class="params">(String str)</span>&#123;</span><br><span class="line">        <span class="keyword">try</span> &#123;</span><br><span class="line">            <span class="type">double</span> num=Double.valueOf(str);</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line">        &#125; <span class="keyword">catch</span> (Exception e) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">addUser</span><span class="params">(Vector&lt;User&gt; userList, String[] splited)</span>&#123;</span><br><span class="line">        <span class="keyword">if</span>(splited.length == <span class="number">4</span>)&#123;</span><br><span class="line">            <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">User</span>();</span><br><span class="line">            User.setString(userList, user, splited);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span> <span class="keyword">if</span>(splited.length == <span class="number">5</span>)&#123;</span><br><span class="line">            <span class="type">Student</span> <span class="variable">student</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Student</span>();</span><br><span class="line">            student.setDiscountNum(Integer.parseInt(splited[<span class="number">4</span>]));</span><br><span class="line">            Student.setString(userList, student, splited);</span><br><span class="line">            <span class="keyword">return</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Train</span>&#123;</span><br><span class="line">    <span class="keyword">private</span> String trainType;</span><br><span class="line">    <span class="keyword">private</span> String trainNum;</span><br><span class="line">    <span class="keyword">private</span> String line;</span><br><span class="line">    <span class="keyword">private</span> Vector&lt;Double&gt; ticketPrice = <span class="keyword">new</span> <span class="title class_">Vector</span>&lt;Double&gt;();</span><br><span class="line">    <span class="keyword">private</span> Vector&lt;Integer&gt; ticketNum = <span class="keyword">new</span> <span class="title class_">Vector</span>&lt;Integer&gt;();</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">getLine</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> line;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setLine</span><span class="params">(String line)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.line = line;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">getTrainNum</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> trainNum;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setTrainNum</span><span class="params">(String trainNum)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.trainNum = trainNum;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">getTrainType</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> trainType;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setTrainType</span><span class="params">(String trainType)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.trainType = trainType;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> Vector&lt;Double&gt; <span class="title function_">getTicketPrice</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> ticketPrice;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setTicketPrice</span><span class="params">(Vector&lt;Double&gt; ticketPrice)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.ticketPrice = ticketPrice;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> Vector&lt;Integer&gt; <span class="title function_">getTicketNum</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> ticketNum;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setTicketNum</span><span class="params">(Vector&lt;Integer&gt; ticketNum)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.ticketNum = ticketNum;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Station</span>&#123;</span><br><span class="line">    <span class="keyword">private</span> String name;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">getName</span><span class="params">()</span>&#123;</span><br><span class="line">        <span class="keyword">return</span> name;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setName</span><span class="params">(String stationName)</span>&#123;</span><br><span class="line">        name = stationName;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Line</span>&#123;</span><br><span class="line">    <span class="keyword">private</span> String line;</span><br><span class="line">    <span class="keyword">private</span> <span class="type">int</span> capacity;</span><br><span class="line">    <span class="keyword">public</span> Vector&lt;String&gt; station = <span class="keyword">new</span> <span class="title class_">Vector</span>&lt;String&gt;();</span><br><span class="line">    <span class="keyword">public</span> Vector&lt;Integer&gt; stationMileage = <span class="keyword">new</span> <span class="title class_">Vector</span>&lt;Integer&gt;();</span><br><span class="line">    <span class="keyword">private</span> <span class="type">int</span> usedCapacity;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">()</span>&#123;</span><br><span class="line">        System.out.format(<span class="string">&quot;%s %d/%d&quot;</span>,getLine(), getUsedCapacity(), getCapacity());</span><br><span class="line">        <span class="type">int</span> i;</span><br><span class="line">        <span class="keyword">for</span>(i=<span class="number">0</span>;i&lt; station.size();i++)&#123;</span><br><span class="line">            System.out.format(<span class="string">&quot; %s:%d&quot;</span>,getStation().get(i),getStationMileage().get(i));</span><br><span class="line">        &#125;</span><br><span class="line">        System.out.print(<span class="string">&quot;\n&quot;</span>);</span><br><span class="line">        <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">(<span class="type">int</span> index)</span>&#123;</span><br><span class="line">        System.out.format(<span class="string">&quot;[%d] %s %d/%d&quot;</span>,index, getLine(), getUsedCapacity(), getCapacity());</span><br><span class="line">        <span class="type">int</span> i;</span><br><span class="line">        <span class="keyword">for</span>(i=<span class="number">0</span>;i&lt; station.size();i++)&#123;</span><br><span class="line">            System.out.format(<span class="string">&quot; %s:%d&quot;</span>,getStation().get(i),getStationMileage().get(i));</span><br><span class="line">        &#125;</span><br><span class="line">        System.out.print(<span class="string">&quot;\n&quot;</span>);</span><br><span class="line">        <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">getUsedCapacity</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> usedCapacity;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setUsedCapacity</span><span class="params">(<span class="type">int</span> usedCapacity)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.usedCapacity = usedCapacity;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> Vector&lt;String&gt; <span class="title function_">getStation</span><span class="params">()</span>&#123;</span><br><span class="line">        <span class="keyword">return</span> station;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> Vector&lt;Integer&gt; <span class="title function_">getStationMileage</span><span class="params">()</span>&#123;</span><br><span class="line">        <span class="keyword">return</span> stationMileage;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setStation</span><span class="params">(String name, <span class="type">int</span> mileage)</span>&#123;</span><br><span class="line">        station.addElement(name);</span><br><span class="line">        stationMileage.addElement(mileage);</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">getLine</span><span class="params">()</span>&#123;</span><br><span class="line">        <span class="keyword">return</span> line;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setLine</span><span class="params">(String lineName)</span>&#123;</span><br><span class="line">        line = lineName;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">getCapacity</span><span class="params">()</span>&#123;</span><br><span class="line">        <span class="keyword">return</span> capacity;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setCapacity</span><span class="params">(<span class="type">int</span> lineCapacity)</span>&#123;</span><br><span class="line">        capacity = lineCapacity;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">addStation</span><span class="params">(Line line, <span class="type">int</span> index, String stationName, <span class="type">int</span> mileage)</span>&#123;</span><br><span class="line">        line.station.add(index, stationName);</span><br><span class="line">        line.stationMileage.add(index, mileage);</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Order</span>&#123;</span><br><span class="line">    <span class="keyword">private</span> String trainNum;</span><br><span class="line">    <span class="keyword">private</span> String begin;</span><br><span class="line">    <span class="keyword">private</span> String destination;</span><br><span class="line">    <span class="keyword">private</span> String seat;</span><br><span class="line">    <span class="keyword">private</span> <span class="type">int</span> seatNum;</span><br><span class="line">    <span class="keyword">private</span> <span class="type">double</span> single;</span><br><span class="line">    <span class="keyword">private</span> <span class="type">double</span> sum;</span><br><span class="line">    <span class="keyword">private</span> <span class="type">boolean</span> <span class="variable">paid</span> <span class="operator">=</span> <span class="literal">false</span>;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="type">double</span> <span class="title function_">getSingle</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> single;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setSingle</span><span class="params">(<span class="type">double</span> single)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.single = single;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isPaid</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> paid;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setPaid</span><span class="params">(<span class="type">boolean</span> paid)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.paid = paid;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">getTrainNum</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> trainNum;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">getSeatNum</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> seatNum;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">getBegin</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> begin;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">getDestination</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> destination;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">getSeat</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> seat;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="type">double</span> <span class="title function_">getSum</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> sum;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setTrainNum</span><span class="params">(String trainNum)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.trainNum = trainNum;</span><br><span class="line">    &#125;</span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setBegin</span><span class="params">(String begin)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.begin = begin;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setDestination</span><span class="params">(String destination)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.destination = destination;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setSeat</span><span class="params">(String seat)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.seat = seat;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setSeatNum</span><span class="params">(<span class="type">int</span> seatNum)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.seatNum = seatNum;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setSum</span><span class="params">(<span class="type">double</span> sum)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.sum = sum;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">User</span> &#123;</span><br><span class="line">    <span class="keyword">private</span> String name;</span><br><span class="line">    <span class="keyword">private</span> String sex;</span><br><span class="line">    <span class="keyword">private</span> String Aadhaar;</span><br><span class="line">    <span class="keyword">private</span> <span class="type">boolean</span> admin;</span><br><span class="line">    <span class="keyword">private</span> <span class="type">boolean</span> isLogin;</span><br><span class="line">    <span class="keyword">private</span> <span class="type">double</span> <span class="variable">balance</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line">    Vector&lt;Order&gt; orders = <span class="keyword">new</span> <span class="title class_">Vector</span>&lt;Order&gt;();</span><br><span class="line">    <span class="keyword">private</span> <span class="type">boolean</span> <span class="variable">cert</span> <span class="operator">=</span> <span class="literal">true</span>;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="type">double</span> <span class="title function_">getBalance</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> balance;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setBalance</span><span class="params">(<span class="type">double</span> balance)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.balance = balance;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isCert</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> cert;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setCert</span><span class="params">(<span class="type">boolean</span> cert)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.cert = cert;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> Vector&lt;Order&gt; <span class="title function_">getOrders</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> orders;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setOrders</span><span class="params">(Vector&lt;Order&gt; orders)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.orders = orders;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isLogin</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> isLogin;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setLogin</span><span class="params">(<span class="type">boolean</span> login)</span> &#123;</span><br><span class="line">        isLogin = login;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">getAdmin</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> admin;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setAdmin</span><span class="params">(<span class="type">boolean</span> isAdmin)</span> &#123;</span><br><span class="line">        admin = isAdmin;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">getName</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> name;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setName</span><span class="params">(String myName)</span> &#123;</span><br><span class="line">        name = myName;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">getSex</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> sex;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setSex</span><span class="params">(String mySex)</span> &#123;</span><br><span class="line">        sex = mySex;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">getAadhaar</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> Aadhaar;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setAadhaar</span><span class="params">(String myAadhaar)</span> &#123;</span><br><span class="line">        Aadhaar = myAadhaar;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="meta">@Override</span></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">()</span> &#123;</span><br><span class="line">        System.out.println(<span class="string">&quot;Name:&quot;</span> + getName());</span><br><span class="line">        System.out.println(<span class="string">&quot;Sex:&quot;</span> + getSex());</span><br><span class="line">        System.out.println(<span class="string">&quot;Aadhaar:&quot;</span> + getAadhaar());</span><br><span class="line">        <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">str</span><span class="params">(String str)</span> &#123;</span><br><span class="line">        <span class="keyword">final</span> <span class="type">String</span> <span class="variable">number</span> <span class="operator">=</span> <span class="string">&quot;0123456789&quot;</span>;</span><br><span class="line">        <span class="type">char</span>[] ch = str.toCharArray();</span><br><span class="line">        <span class="keyword">if</span> (ch.length == <span class="number">0</span>) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">        &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">            <span class="type">boolean</span> <span class="variable">is</span> <span class="operator">=</span> <span class="literal">true</span>;</span><br><span class="line">            <span class="keyword">if</span> (number.indexOf(ch[<span class="number">0</span>]) == -<span class="number">1</span>) &#123;</span><br><span class="line">                <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i &lt; ch.length; i++) &#123;</span><br><span class="line">                    <span class="keyword">if</span> ((ch[i] &gt;= <span class="number">65</span> &amp;&amp; ch[i] &lt;= <span class="number">90</span>) || (ch[i] &gt;= <span class="number">97</span> &amp;&amp; ch[i] &lt;= <span class="number">122</span>) || ch[i] == <span class="number">95</span>) &#123;</span><br><span class="line">                    &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">                        is = <span class="literal">false</span>;</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">return</span> is;</span><br><span class="line">            &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">                <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">card</span><span class="params">(String cardNum, String sex)</span> &#123;</span><br><span class="line">        <span class="type">char</span>[] ch = cardNum.toCharArray();</span><br><span class="line">        <span class="type">boolean</span> <span class="variable">is</span> <span class="operator">=</span> <span class="literal">true</span>;</span><br><span class="line">        <span class="type">int</span> <span class="variable">num1</span> <span class="operator">=</span> (ch[<span class="number">0</span>] - <span class="string">&#x27;0&#x27;</span>) * <span class="number">1000</span> + (ch[<span class="number">1</span>] - <span class="string">&#x27;0&#x27;</span>) * <span class="number">100</span> + (ch[<span class="number">2</span>] - <span class="string">&#x27;0&#x27;</span>) * <span class="number">10</span> + (ch[<span class="number">3</span>] - <span class="string">&#x27;0&#x27;</span>);</span><br><span class="line">        <span class="type">int</span> <span class="variable">num2</span> <span class="operator">=</span> (ch[<span class="number">4</span>] - <span class="string">&#x27;0&#x27;</span>) * <span class="number">1000</span> + (ch[<span class="number">5</span>] - <span class="string">&#x27;0&#x27;</span>) * <span class="number">100</span> + (ch[<span class="number">6</span>] - <span class="string">&#x27;0&#x27;</span>) * <span class="number">10</span> + (ch[<span class="number">7</span>] - <span class="string">&#x27;0&#x27;</span>);</span><br><span class="line">        <span class="type">int</span> <span class="variable">num3</span> <span class="operator">=</span> (ch[<span class="number">8</span>] - <span class="string">&#x27;0&#x27;</span>) * <span class="number">100</span> + (ch[<span class="number">9</span>] - <span class="string">&#x27;0&#x27;</span>) * <span class="number">10</span> + (ch[<span class="number">10</span>] - <span class="string">&#x27;0&#x27;</span>);</span><br><span class="line">        <span class="keyword">if</span> (num1 == <span class="number">0</span> || num1 &gt; <span class="number">1237</span>) &#123;</span><br><span class="line">            is = <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span> (num2 &lt; <span class="number">20</span> || num2 &gt; <span class="number">460</span>) &#123;</span><br><span class="line">            is = <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span> (num3 &gt; <span class="number">100</span>) &#123;</span><br><span class="line">            is = <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span> (Objects.equals(sex, <span class="string">&quot;F&quot;</span>) &amp;&amp; (ch[<span class="number">11</span>] - <span class="string">&#x27;0&#x27;</span>) != <span class="number">0</span>) &#123;</span><br><span class="line">            is = <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span> (Objects.equals(sex, <span class="string">&quot;M&quot;</span>) &amp;&amp; (ch[<span class="number">11</span>] - <span class="string">&#x27;0&#x27;</span>) != <span class="number">1</span>) &#123;</span><br><span class="line">            is = <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span> (Objects.equals(sex, <span class="string">&quot;O&quot;</span>) &amp;&amp; (ch[<span class="number">11</span>] - <span class="string">&#x27;0&#x27;</span>) != <span class="number">2</span>) &#123;</span><br><span class="line">            is = <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span> is;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">repeat</span><span class="params">(Vector&lt;User&gt; userlist, String cardNum)</span> &#123;</span><br><span class="line">        <span class="type">boolean</span> <span class="variable">is</span> <span class="operator">=</span> <span class="literal">true</span>;</span><br><span class="line">        <span class="keyword">for</span>(<span class="type">int</span> i=<span class="number">0</span>;i&lt; userlist.size();i++) &#123;</span><br><span class="line">            <span class="keyword">if</span> (Objects.equals(userlist.get(i).getAadhaar(), cardNum)) &#123;</span><br><span class="line">                <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">setString</span><span class="params">(Vector&lt;User&gt; userlist, User user, String[] args)</span> &#123;</span><br><span class="line">        <span class="comment">// System.out.println(args.length);</span></span><br><span class="line">        <span class="keyword">if</span> (args.length != <span class="number">4</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">        &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">            <span class="comment">// System.out.println(args[2]);</span></span><br><span class="line">            <span class="keyword">if</span> (!str(args[<span class="number">1</span>])) &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Name illegal&quot;</span>);</span><br><span class="line">            &#125; <span class="keyword">else</span> <span class="keyword">if</span> (!Objects.equals(args[<span class="number">2</span>], <span class="string">&quot;F&quot;</span>) &amp;&amp; !Objects.equals(args[<span class="number">2</span>], <span class="string">&quot;M&quot;</span>) &amp;&amp; !Objects.equals(args[<span class="number">2</span>], <span class="string">&quot;O&quot;</span>)) &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Sex illegal&quot;</span>);</span><br><span class="line">            &#125; <span class="keyword">else</span> <span class="keyword">if</span> (!card(args[<span class="number">3</span>], args[<span class="number">2</span>])) &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Aadhaar number illegal&quot;</span>);</span><br><span class="line">            &#125; <span class="keyword">else</span> <span class="keyword">if</span> (repeat(userlist, args[<span class="number">3</span>])) &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Aadhaar number exist&quot;</span>);</span><br><span class="line">            &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">                user.setName(args[<span class="number">1</span>]);</span><br><span class="line">                user.setSex(args[<span class="number">2</span>]);</span><br><span class="line">                user.setAadhaar(args[<span class="number">3</span>]);</span><br><span class="line">                user.setAdmin(<span class="literal">false</span>);</span><br><span class="line">                user.setLogin(<span class="literal">false</span>);</span><br><span class="line">                userlist.addElement(user);</span><br><span class="line">                user.toString();</span><br><span class="line"></span><br><span class="line">            &#125;</span><br><span class="line"></span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Student</span> <span class="keyword">extends</span> <span class="title class_">User</span> &#123;</span><br><span class="line">    <span class="keyword">private</span> <span class="type">int</span> discountNum;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setDiscountNum</span><span class="params">(<span class="type">int</span> discountNum)</span> &#123;</span><br><span class="line">        <span class="built_in">this</span>.discountNum = discountNum;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">getDiscountNum</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> discountNum;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="meta">@Override</span></span><br><span class="line">    <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">()</span> &#123;</span><br><span class="line">        System.out.println(<span class="string">&quot;Name:&quot;</span> + getName());</span><br><span class="line">        System.out.println(<span class="string">&quot;Sex:&quot;</span> + getSex());</span><br><span class="line">        System.out.println(<span class="string">&quot;Aadhaar:&quot;</span> + getAadhaar());</span><br><span class="line">        System.out.println(<span class="string">&quot;Discount:&quot;</span> + getDiscountNum());</span><br><span class="line">        <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">setString</span><span class="params">(Vector&lt;User&gt; userlist, User user, String[] args)</span> &#123;</span><br><span class="line">        <span class="comment">// System.out.println(args.length);</span></span><br><span class="line">        <span class="keyword">if</span> (args.length != <span class="number">5</span>) &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;Arguments illegal&quot;</span>);</span><br><span class="line">        &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">            <span class="comment">// System.out.println(args[2]);</span></span><br><span class="line">            <span class="keyword">if</span> (!str(args[<span class="number">1</span>])) &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Name illegal&quot;</span>);</span><br><span class="line">            &#125; <span class="keyword">else</span> <span class="keyword">if</span> (!Objects.equals(args[<span class="number">2</span>], <span class="string">&quot;F&quot;</span>) &amp;&amp; !Objects.equals(args[<span class="number">2</span>], <span class="string">&quot;M&quot;</span>) &amp;&amp; !Objects.equals(args[<span class="number">2</span>], <span class="string">&quot;O&quot;</span>)) &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Sex illegal&quot;</span>);</span><br><span class="line">            &#125; <span class="keyword">else</span> <span class="keyword">if</span> (!card(args[<span class="number">3</span>], args[<span class="number">2</span>])) &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Aadhaar number illegal&quot;</span>);</span><br><span class="line">            &#125; <span class="keyword">else</span> <span class="keyword">if</span> (repeat(userlist, args[<span class="number">3</span>])) &#123;</span><br><span class="line">                System.out.println(<span class="string">&quot;Aadhaar number exist&quot;</span>);</span><br><span class="line">            &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">                user.setName(args[<span class="number">1</span>]);</span><br><span class="line">                user.setSex(args[<span class="number">2</span>]);</span><br><span class="line">                user.setAadhaar(args[<span class="number">3</span>]);</span><br><span class="line">                user.setAdmin(<span class="literal">false</span>);</span><br><span class="line">                user.setLogin(<span class="literal">false</span>);</span><br><span class="line">                userlist.addElement(user);</span><br><span class="line">                user.toString();</span><br><span class="line"></span><br><span class="line">            &#125;</span><br><span class="line"></span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Cert</span>&#123;</span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">isFile</span><span class="params">(String fileName)</span>&#123;</span><br><span class="line">        <span class="keyword">try</span> &#123;</span><br><span class="line">            <span class="type">BufferedReader</span> <span class="variable">br</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedReader</span>(<span class="keyword">new</span> <span class="title class_">FileReader</span>(fileName));</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line">        &#125; <span class="keyword">catch</span> (Exception e) &#123;</span><br><span class="line">            <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> HashMap&lt;String, Boolean&gt; <span class="title function_">read</span><span class="params">(HashMap&lt;String, Boolean&gt; cert, String fileName, Vector&lt;User&gt; userList)</span> <span class="keyword">throws</span> IOException &#123;</span><br><span class="line">        <span class="comment">// fileName = &quot;CTS1\\&quot; + fileName;</span></span><br><span class="line">        <span class="keyword">if</span>(isFile((fileName)))&#123;</span><br><span class="line">            <span class="keyword">try</span> &#123;</span><br><span class="line">                <span class="type">BufferedReader</span> <span class="variable">br</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedReader</span>(<span class="keyword">new</span> <span class="title class_">FileReader</span>(fileName));</span><br><span class="line">                String line;</span><br><span class="line">                <span class="keyword">while</span> ((line = br.readLine()) != <span class="literal">null</span>) &#123;</span><br><span class="line">                    String[] lines = line.split(<span class="string">&quot;,&quot;</span>);</span><br><span class="line">                    cert.put(lines[<span class="number">0</span>], lines[<span class="number">1</span>].equals(<span class="string">&quot;P&quot;</span>));</span><br><span class="line">                &#125;</span><br><span class="line">                br.close();</span><br><span class="line">            &#125;</span><br><span class="line">            <span class="keyword">catch</span>(IOException e)&#123;</span><br><span class="line">                <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>();</span><br><span class="line">            &#125;</span><br><span class="line">            Iterator&lt;Map.Entry&lt;String, Boolean&gt;&gt; iterator = cert.entrySet().iterator();</span><br><span class="line">            <span class="type">int</span> <span class="variable">positive</span> <span class="operator">=</span> <span class="number">0</span>, negative = <span class="number">0</span>;</span><br><span class="line">            <span class="keyword">while</span> (iterator.hasNext()) &#123;</span><br><span class="line">                Map.Entry&lt;String, Boolean&gt; entry = iterator.next();</span><br><span class="line">                <span class="keyword">if</span>(entry.getValue())&#123;</span><br><span class="line">                    positive++;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="keyword">else</span>&#123;</span><br><span class="line">                    negative++;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="type">String</span> <span class="variable">userCard</span> <span class="operator">=</span> entry.getKey();</span><br><span class="line">                <span class="keyword">for</span>(<span class="type">int</span> i=<span class="number">0</span>;i&lt;userList.size();i++)&#123;</span><br><span class="line">                    <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> userList.get(i);</span><br><span class="line">                    <span class="keyword">if</span>(Objects.equals(userCard, user.getAadhaar()))&#123;</span><br><span class="line">                        user.setCert(entry.getValue());</span><br><span class="line">                        <span class="keyword">break</span>;</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">                <span class="comment">// System.out.print(entry.getValue());</span></span><br><span class="line">            &#125;</span><br><span class="line">            System.out.format(<span class="string">&quot;Import Success, Positive:%d Negative:%d\n&quot;</span>,positive,negative);</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">else</span> &#123;</span><br><span class="line">            System.out.println(<span class="string">&quot;no such file&quot;</span>);</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span> cert;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">&#125;</span><br><span class="line"></span><br></pre></td></tr></table></figure>


    </div>

    
    
    

    <footer class="post-footer"><script src="//sdk.jinrishici.com/v2/browser/jinrishici.js"></script>
<script>
  jinrishici.load((result) => {
    let jrsc = document.getElementById('jrsc');
    const data = result.data;
    let author = data.origin.author;
    let title = '《' + data.origin.title + '》';
    let content = data.content.substr(0, data.content.length - 1);
    let dynasty = data.origin.dynasty.substr(0, data.origin.dynasty.length - 1);
    jrsc.innerText = content + ' @ ' + dynasty + '·' + author + title;
  });
</script>
<div style="text-align: center"><span id="jrsc" >正在加载今日诗词....</span></div>

          <div class="post-tags">
              <a href="/tags/%E5%89%8D%E5%90%8E%E7%AB%AF/" rel="tag"># 前后端</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/2022/05/06/%E5%89%8D%E7%AB%AF%E9%83%A8%E7%BD%B2/" rel="prev" title="前端项目傻逼式部署">
                  <i class="fa fa-chevron-left"></i> 前端项目傻逼式部署
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/2022/05/31/java%E4%BD%9C%E4%B8%9A%E6%B3%A8%E6%84%8F/" rel="next" title="仿抖音项目开发遇到的问题">
                  仿抖音项目开发遇到的问题 <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>






    <div class="comments" id="waline"></div>
</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2023</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Mathieu Lin</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div><script color="0,0,255" opacity="0.5" zIndex="-1" count="99" src="https://cdnjs.sourcegcdn.com//ajax/libs/canvas-nest.js/1.0.1/canvas-nest.js"></script>

    </div>
  </footer>

  
  <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/next-theme-pjax/0.5.0/pjax.min.js" integrity="sha256-3NkoLDrmHLTYj7csHIZSr0MHAFTXth7Ua/DDt4MRUAg=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/next-boot.js"></script><script src="/js/pjax.js"></script>

  
<script src="https://cdnjs.cloudflare.com/ajax/libs/hexo-generator-searchdb/1.4.0/search.js" integrity="sha256-vXZMYLEqsROAXkEw93GGIvaB2ab+QW6w3+1ahD9nXXA=" crossorigin="anonymous"></script>
<script src="/js/third-party/search/local-search.js"></script>





  




<script class="next-config" data-name="waline" type="application/json">{"lang":"zh-CN","enable":true,"serverURL":"https://blog-commeny-mh5e4d5jo-mathieulin.vercel.app","cssUrl":"https://unpkg.com/@waline/client@v2/dist/waline.css","commentCount":true,"pageview":false,"el":"#waline","comment":true,"libUrl":"//unpkg.com/@waline/client@v2/dist/waline.js","path":"/2022/05/06/CTS4/"}</script>
<link rel="stylesheet" href="https://unpkg.com/@waline/client@v2/dist/waline.css">
<script>
document.addEventListener('page:loaded', () => {
  NexT.utils.loadComments(CONFIG.waline.el).then(() =>
    NexT.utils.getScript(CONFIG.waline.libUrl, { condition: window.Waline })
  ).then(() => 
    Waline.init(Object.assign({}, CONFIG.waline,{ el: document.querySelector(CONFIG.waline.el) }))
  );
});
</script>

</body>
</html>

<!-- 页面点击小红心 -->
<script type="text/javascript" src="/js/src/clicklove.js"></script>
